customizing best practices

This topic contains 5 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #404212

    Timothy Sullivan
    Buyer
    Post count: 63

    Question for you guys. I want to add some simple HTML divs to the “Add Event” and “Add Listing” pages. These are the customer facing pages that allow users to add listings/Events. (I want to add some contextual tooltips to help users navigate the forms.)

    What is the method you guys recommend to customize those pages a bit – is there a way that I can avoid editing the core files directly?

    Thanks!
    Timothy

    #404223

    Guust
    Moderator
    Post count: 29970

    Hi Timothy

    It depends at bit what you want to achieve exactly.

    You can add text widgets above or in the sidebar specific for each CPT:
    https://wpgeodirectory.com/docs/useful-plugins/#logic

    Or you can use the language files to add HTML code to any language string used on those pages, but that will have to be the same for both CPTs.
    https://wpgeodirectory.com/docs/translating-addons/

    Anything else would require some custom coding.

    Thanks

    #404228

    Timothy Sullivan
    Buyer
    Post count: 63

    Hi Guust!

    Thanks. I’ll try working with the translation files.

    #404247

    Timothy Sullivan
    Buyer
    Post count: 63

    I know this is resolved, but to show you what I am doing, I’ve attached a screenshot. (Sorry, see attached image called Tim.png. uploaded wrong screenshot by mistake)

    this is an example of the simple HTML I would need to add to the “add event” page. everything else for the tooltip appears in the CSS.
    ‘<div class=”tooltip”>
    <p>If your event is already posted on Facebook, you can import all the details with one click. Paste the Facebook event link here and click import details.</p>
    </div>’

    For people not familiar, I think these form need some guidance for users. I’ll let you know how I make out. thanks again!

    #404281

    Guust
    Moderator
    Post count: 29970

    You would just “translate” that heading using the Social Importer language file, see the image for an example of some other site.
    Thanks

    #404283

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    There is also this, might be worth checking out: https://wpgeodirectory.com/support/topic/change-geodirectory-template/#post-403809

    Paolo references this action: geodir_details_main_content

    Example:

    
    
    
    add_action( 'geodir_details_main_content','my_extra_content',35);
    function my_extra_content {echo 'hello world';}

    Let us know how it goes

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket