Hide breadcrumbs from a custom template page

This topic contains 10 replies, has 3 voices, and was last updated by  Paolo 8 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #66643

    ssalustri
    Expired Member
    Post count: 86

    Hi,
    I’ve created a custom template for my home page using geodir-home.php functions and page.php template.

    My hp load these functions:
    <?php
    /*
    Template Name: Home Personalizzata
    */
    get_header();

    // WRAPPER OPEN
    do_action(‘geodir_wrapper_open’, ‘home-page’, ‘geodir-wrapper’, ”);

    do_action(‘geodir_top_content’, ‘home-page’);

    do_action(‘geodir_home_before_main_content’);

    do_action(‘geodir_before_main_content’, ‘home-page’); ?>

    URL: http://test.turismoumbria.net/

    I need to remove breadcrumb and i tested this function in my functions.php in child theme:
    remove_action(‘geodir_home_before_main_content’, ‘geodir_breadcrumb’, 20);

    But doesn’t work.

    Can you suggest another functions?

    Thanks

    Stefano

    #66720

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please provide a admin credentials in a private reply and we will have a look.

    Thanks

    #66725

    ssalustri
    Expired Member
    Post count: 86
    This reply has been marked as private.
    #67417

    ssalustri
    Expired Member
    Post count: 86

    Hi guys,
    any suggestion on how resolve this situation?

    Stefano

    #67490

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Stefano,

    Please check now 🙂

    Thanks,

    Stiofan

    #67495

    ssalustri
    Expired Member
    Post count: 86

    Great Stiofan!
    Where i was wrong?

    Stefano

    #67497

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    looks like the remove action needed to be called later, so i wraped it an a function and called it after the theme loads.

    Stiofan

    #67692

    ssalustri
    Expired Member
    Post count: 86

    Hi Stiofan,
    I was checking my home page created with custom template and there’is something wrong in the website architecture.

    To create a custom template to display full width map in the header section i called some functions of geodir-home.php before the html template of the page.php (i created a new template called home-personalizzata.php).

    I think to have many content area one inside the other and this creates problems with the site’s structure (see footer section in http://test.turismoumbria.net/ that is 1040 px insetad of 1349 px)
    My home page is: http://test.turismoumbria.net/.

    Could you give me some suggestions on how to fix it?

    Thanks

    Stefano

    #67850

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you have the footer inside the geodir_wrapper. Probably you are missing the action to close the wrapper before the footer.

    But even if you move it out of it, it will not be 1349px wide. it will go full width like the header.

    Let us know if this helps.

    Thanks

    #67864

    ssalustri
    Expired Member
    Post count: 86

    Hi Paolo,
    the issue was related to geodir_wrapper_close action.

    Thanks

    Stefano

    #67886

    Paolo
    Site Admin
    Post count: 31206

    Glad we solved 🙂

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount