Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #998756
    Amanda P
    Participant

    Hello,

    I have almost all of my pages on Blank | No container, header footer template.

    However, I want all of the page titles to show on each page. It would be best to not have to go and change every single page individually to another template and/or add in page titles.

    So I was thinking of just modifying the template in my child theme.

    Would you be able to assist me in the code I would use to do this?

    Many thanks!

    #998757
    Amanda P
    Participant
    This reply has been marked as private.
    #998759
    Amanda P
    Participant

    Oh also, I am wondering if we can do this on all pages EXCEPT the home page.

    Thank you 🙂

    #998921
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! To resolve this issue, since you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/TEMPLATE-BLANK-4.PHP (No Container | Header, Footer)
    // -----------------------------------------------------------------------------
    // A blank page for creating unique layouts.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full" role="main">
    
        <?php while ( have_posts() ) : the_post(); ?>
    
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <?php x_get_view( 'integrity', 'content', 'page' ); ?>
          </article>
    
        <?php endwhile; ?>
    
      </div>
    
    <?php get_footer(); ?>

    3] Save the file named as template-blank-4.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/integrity

    Hope this helps. Kindly let us know.

    #999658
    Amanda P
    Participant

    Thanks guys! I did end up figuring it out from another thread, and your answer is exactly what I did!

    Thank again for all the support. <3

    #999808
    Rahul
    Moderator

    You’re welcome. We’re glad you are happy.

    Enjoy your X!

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