Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #858440
    mpanesar
    Participant

    Hi team,

    Just some guidance on what php files I should be focusing on to make minor changes to the theme please:

    1). What file is responsible the post preview as shown in the screenshot attached (looking to add tag meta to the post preview (currently quote format), another screenshot added)

    2). What file is responsible for the way the post is displayed when on that particular post page (not preview as discussed above)

    I would be greatly if you could help assistance with this?

    #858539
    Zeshan
    Member

    Hi there,

    Thanks for writing in!

    #1: The file for this quote post format is x/framework/views/{stack_name}/content-quote.php. (stack_name = integrity, renew, icon, ethos)

    #2: The file for standard single post format is x/framework/views/{stack_name}/content.php and for other formats like audio, gallery, image or link are located in the same directory with a prefix of content-{format-name}.php

    Thank you!

    #858739
    mpanesar
    Participant
    This reply has been marked as private.
    #858998
    Rupok
    Member

    Hi there,

    Thanks for updating. The right answer is already provided and certainly they are not same. Kindly follow the previous reply carefully.

    Cheers!

    #859390
    mpanesar
    Participant

    Hi,

    Apologises – let me clarify:

    1. I understand to make changes to a quote post layout is under x/framework/views/{stack_name}/content-quote.php, the standard under x/framework/views/{stack_name}/content.php and so on. Changes made to these are reflected when I view the single post only not the main blog page where all posts are shown.

    The file I wanted to know was the one that allows me to change posts preview in the main blog page, example shown in the previous post attachment, as you can see tags are shown on standard post previews and not quote post previews even though the quote post does contain tags.

    #859570
    mpanesar
    Participant
    This reply has been marked as private.
    #860016
    Rue Nel
    Moderator

    Hello There,

    To better assist your with this issue, Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #860474
    mpanesar
    Participant
    This reply has been marked as private.
    #860576
    Zeshan
    Member

    Hi there,

    Quote post format doesn’t output post footer and content in the main blog page. It only outputs it in single post page due to its unique layout. To show the footer on quote format on main blog page too, copy the file wp-content/themes/x/framework/views/renew/content-quote.php in your child theme’s folder /framework/views/renew/, open the copied file in a text editor and replace entire code with following:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT-QUOTE.PHP
    // -----------------------------------------------------------------------------
    // Quote post output for Renew.
    // =============================================================================
    
    $quote = get_post_meta( get_the_ID(), '_x_quote_quote', true );
    $cite  = get_post_meta( get_the_ID(), '_x_quote_cite',  true );
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <header class="entry-header">
          <?php if ( is_single() ) : ?>
          <div class="x-hgroup">
            <h1 class="entry-title"><?php echo $quote; ?></h1>
            <cite class="entry-title-sub"><?php echo $cite; ?></cite>
          </div>
          <?php else : ?>
          <div class="x-hgroup">
            <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php echo $quote; ?></a></h2>
            <cite class="entry-title-sub"><?php echo $cite; ?></cite>
          </div>
          <?php endif; ?>
          <?php x_renew_entry_meta(); ?>
        </header>
        <?php if ( is_single() ) : ?>
          <?php if ( has_post_thumbnail() ) : ?>
            <div class="entry-featured">
              <?php x_featured_image(); ?>
            </div>
          <?php endif; ?>
          <?php x_get_view( 'global', '_content', 'the-content' ); ?>
        <?php endif; ?>
        <?php x_get_view( 'renew', '_content', 'post-footer' ); ?>
      </div>
    </article>
    

    Thank you!

    #863709
    mpanesar
    Participant

    Thank you!!! 🙂

    #864244
    Christian
    Moderator

    You’re welcome. 🙂

    #865737
    mpanesar
    Participant
    This reply has been marked as private.
    #865908
    Zeshan
    Member

    Hi there,

    I’ve checked in my local setup and the changes are showing fine in category page for quote post format (see: http://prntscr.com/ao059x). As this is a custom development, further customizations from here would be 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. Take care!

    #866137
    mpanesar
    Participant

    Hi,

    Therefore there is some kind of bug that allows my site not to show the tags on category archive, however it appears fine on the screenshots you have provided?

    Does the category archive read a different file or format than whats on the content-quote.php? As mentioned below, it appears to work fine on the blog page but not category page which is very bizarre.

    #866886
    Nico
    Moderator

    Hi There,

    Would you mind sharing us your FTP so we could take a closer look on your setup.

    Don’t forget to set it as private reply.

    Thanks.

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