Moving Details Title/Breadcrumbs Into Main Header

This topic contains 2 replies, has 2 voices, and was last updated by  Guust 7 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #441249

    Nick Poulos
    Free User
    Post count: 2

    Hi Guys,

    Experienced web dev, newish to WordPress. I have a header/breadcrumb on my regular pages that I am trying to get to match on the GeoDir details page. I can’t figure out how to get the details page title/breadcrumbs into my regular header title/breadcrumbs.

    I imagine something like removing the title/breadcrumbs from the main content, and writing a function to replace the one that generates my headers that will check if its a geodir details page, and show some diff vars instead?

    Hoping you guys can point me in the right direction.

    Thank you for writing a nice lightweight yet full featured plugin, as well as providing a free/open source tier and support. 👍

    #441254

    Nick Poulos
    Free User
    Post count: 2

    Update:

    Figured out how to replace my theme header and where it was building it out.

    Added a new block to check for single_post() && get_post_type == ‘gd_place’

    <?php if (get_post_type() == ‘gd_place’) : ?>
    <header class=”page-header clearfix”>
    <div class=”page-header-inner”>
    <h1><?php echo get_the_title( get_the_ID() ); ?></h1>
    <?php if(function_exists(‘get_my_crumbs()’)) {
    echo ‘<div class=”breadcrumbs” typeof=”BreadcrumbList” vocab=”http://schema.org/”>’;
    get_my_crumbs();
    echo ‘</div>’;
    }?>
    </div>
    </header><!– .page-header –>
    <?php endif; ?>

    This also allows my original breadcrumb function to come through, perfect.

    I think I can figure out how to remove breadcrumbs and title from details post content. But if not I will be back here soon!

    #441256

    Guust
    Moderator
    Post count: 29970

    Thanks for letting us know.

Viewing 3 posts - 1 through 3 (of 3 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