basic theme mod question

This topic contains 4 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #275495

    Myrianne
    Expired Member
    Post count: 48

    hello – im trying just to include a specific header image on top of add-listing page only.

    i see the

    do_action('geodir_top_content', 'add-listing-page') ;

    code and am sucessfully outputting my image by calling the

    add_action('geodir_top_content', 'huge_home_top_content');

    code in functions.php, but its outputting it to all pages.

    I feel im missing something as how to call the ‘geodir_top_content’ within its ‘add-listing-page’ context.

    thanks for your help

    #275496

    Myrianne
    Expired Member
    Post count: 48

    i feel im close with

    add_action('geodir_top_content', array('huge_home_top_content', 'add-listing-page'));

    but not quite there yet 😉

    #275529

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you need a conditional tag to check if you are on the add listing page, in the function that echos the image.

    See this post for an example : https://wpgeodirectory.com/support/topic/category-page-decriptions/#post-161630

    Let me know if that’s enough for you to move on.

    Thanks

    #275668

    Myrianne
    Expired Member
    Post count: 48

    ok, but im puzzled, what does the second parameter in that call stands for, then? do_action(‘geodir_top_content’, ‘add-listing-page’) ;

    #275806

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I think this is what u want?

    Thanks,

    Stiofan

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

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

Open Support Ticket