Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1069752
    Klaas C
    Participant

    Hi,

    I’m building a child theme for renew. I found an earlier post saying that i need to alter “VIEWS/RENEW/TEMPLATE-BLANK-4.PHP” to see page titles (regardless of the setting there already is in the editor (the sense of having this editor setting if you don’t have it in your theme escapes me)). I have now added this new template but I notice that there is no selector to allow me to have the page title on some but not all of the pages.

      <header class="entry-header mal someclass">
            <h1 class="entry-title"><?php the_title(); ?></h1>
          </header>

    is there a way to have it select for the checkbox in the editor to say “show this if “x_entry_disable_page_title” is set to no only?

    thank you,

    H.

    (WP 4.5.3 / X-theme 4.5.3)

    #1070039
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To make sure that the page title will display or not based on what you have set in the Page Settings, please edit your code above and make use of this code:

    <?php $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?>
    
    <?php if ( $disable_page_title != 'on' ) : ?>
    
    	<header class="entry-header mal someclass">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header>
    
    <?php endif; ?>

    We would loved to know if this has work for you. Thank you.

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