Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #901000
    Andy
    Participant

    Hello,

    I am happy to have created a custom archive page template and implement it for a custom post type, “road trips,” as you can see here:

    http://roadtripsharing.com/road_trip/

    it looks great but i notice a band of blank space below the nav bar and was wondering how to remove it or put text inside it? Specifically I want a heading size “Join An Amazing Adventure!” similar to what Renew usually displays for page title in that band.

    Thanks kindly.

    #901949
    Zeshan
    Member

    Hi Andy,

    Thanks for writing in!

    As this is a custom post type archive page, the header landmark is not showing anything. It is possible to add your desired text in that white band with custom development. While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

    In order to add the heading there, copy the file wp-content/themes/x/framework/views/renew/_landmark-header.php in your child theme’s folder /framework/views/renew/, and immediate after the following line (line #23):

    <div class="x-landmark">
    

    Add following code:

    <?php if ( is_post_type_archive('road_trip') ): ?>
      <h1 class="h-landmark"><span>Join An Amazing Adventure!</span></h1>
    <?php endif; ?>
    

    Hope this helps. 🙂

    Thank you!

    #902624
    Andy
    Participant

    Yeeah! It helps! Now to style my span… Thank you Zeshan! Take care.

    #903481
    Friech
    Moderator

    We’re delighted to assist you with this. Cheers!

  • <script> jQuery(function($){ $("#no-reply-901000 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>