Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1247114
    sandra.i
    Participant

    Hello

    I would like to customise the single blog post page. I am happy to try and do it on my own, could you point out which of the php pages in the renew stack codes for the single blog page? I use ftp to download it and upload the new version to my child theme, would that work?

    Thanks

    #1247170
    Thai
    Moderator

    Hi There,

    Please copy this file: x/framework/views/renew/wp-single.php

    To your child theme: x-child/framework/views/renew/wp-single.php

    Then edit it.

    Hope it helps 🙂

    #1247583
    sandra.i
    Participant

    hi

    thanks for your reply – that php page only has about 10 lines of code and directs to the renew content page…? I’ve had a look at the content page but there’s no modifiable code there either..?

    #1247656
    sandra.i
    Participant
    This reply has been marked as private.
    #1247978
    Friech
    Moderator

    Hi There,

    It could be possible with custom development, regretfully this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding.

    #1248389
    sandra.i
    Participant
    This reply has been marked as private.
    #1248452
    Paul R
    Moderator

    Hi,

    There are a lot of files involve in displaying the content.

    x/framework/views/renew/wp-single.php
    x/framework/views/renew/_content-post-header.php
    x/framework/views/renew/content.php
    x/framework/views/global/_content.php

    You may copy these files to your child theme and edit.

    https://community.theme.co/kb/customization-best-practices/

    Hope that helps.

    #1248544
    sandra.i
    Participant

    I’ve had a look at those but none of them seem to show the code for displaying the styling on the page.

    Could you for example send me a snippet of code that places the meta data and article title and body, and tell mw which page it is located?

    #1248573
    Paul R
    Moderator

    Hi Sandra,

    I am sorry but this is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    #1248610
    sandra.i
    Participant
    This reply has been marked as private.
    #1248739
    Darshana
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then copy the file _landmark-header.php which is located under (“x/framework/views/renew/”) into your child theme’s respective location (“x-child/framework/views/renew/_landmark-header.php”).

    Then Edit the file using a text editor and replace with the following code, so that the categories will appear on your single posts. Below line number 50 is where the new code comes in.

    
    <?php
    
    // =============================================================================
    // VIEWS/RENEW/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
    $breadcrumbs        = x_get_option( 'x_breadcrumb_display' );
    
    ?>
    
    <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?>
      <?php if ( is_page() && $disable_page_title == 'on' ) : ?>
    
      <?php else : ?>
    
        <header class="x-header-landmark">
          <div class="x-container max width">
            <div class="x-landmark-breadcrumbs-wrap">
              <div class="x-landmark">
    
              <?php if ( x_is_shop() || x_is_product() ) : ?>
    
                <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></h1>
    
              <?php elseif ( x_is_bbpress() ) : ?>
    
                <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1>
    
              <?php elseif ( x_is_buddypress() ) : ?>
                <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
                  <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
    
                <?php endif; ?>
              <?php elseif ( is_page() ) : ?>
    
                <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>
    
              <?php elseif ( is_home() || is_single() ) : ?>
                <?php if ( x_is_portfolio_item() ) : ?>
    
                  <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1>
    
                <?php else : ?>
    
                  <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>
    
                  <?php
                  $categories = get_categories( array(
                    'orderby' => 'name',
                    'parent'  => 0
                  ) );
                  
                  foreach ( $categories as $category ) {
                      printf( '<a style="" href="%1$s">%2$s</a>&nbsp;.&nbsp;',
                          esc_url( get_category_link( $category->term_id ) ),
                          esc_html( $category->name )
                      );
                  }
    
                  ?>
    
                <?php endif; ?>
              <?php elseif ( is_search() ) : ?>
    
                <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
    
              <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>
    
                <?php
    
                $meta  = x_get_taxonomy_meta();
                $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );
    
                ?>
    
                <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
    
              <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>
    
                <?php
    
                $meta  = x_get_taxonomy_meta();
                $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );
    
                ?>
    
                <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
    
              <?php elseif ( is_404() ) : ?>
    
                <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
    
              <?php elseif ( is_year() ) : ?>
    
                <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
    
              <?php elseif ( is_month() ) : ?>
    
                <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
    
              <?php elseif ( is_day() ) : ?>
    
                <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
    
              <?php elseif ( x_is_portfolio() ) : ?>
    
                <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
    
              <?php endif; ?>
    
              </div>
    
              <?php if ( $breadcrumbs == '1' ) : ?>
                <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?>
                  <div class="x-breadcrumbs-wrap">
                    <?php x_breadcrumbs(); ?>
                  </div>
                <?php endif; ?>
              <?php endif; ?>
    
              <?php if ( x_is_portfolio() ) : ?>
                <div class="x-breadcrumbs-wrap">
                  <?php x_portfolio_filters(); ?>
                </div>
              <?php endif; ?>
    
            </div>
          </div>
        </header>
    
      <?php endif; ?>
    <?php endif; ?>
    

    For further customization, we advice you to contact a developer or a service.

    Thank you for your understanding.

    #1249993
    sandra.i
    Participant

    Hello

    Thanks for your help – I’ve now updated my landmark header, but could I ask you to have a look at the page where the categories list is now showing:

    http://www.rochesterclinic.co.uk/news/

    The section doesn’t go to the full width of the blog page? How can I make it stretch all the way?

    And – how can I style the category links?

    #1250055
    sandra.i
    Participant

    i’ve done the category links, so it’s just getting them to go the end of the blog page

    #1250167
    Christian
    Moderator

    By full-width, do you mean the edge of the screen? If so, that is not possible because you are using a boxed layout.

    Thanks.

    #1250234
    sandra.i
    Participant

    no, I mean to the end of the section, under CONTACT in the nav

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