Blog page will not display the blog entries

Home Forums Main Forum Blog page will not display the blog entries

This topic contains 7 replies, has 2 voices, and was last updated by  Sushil Adhikari 2 years, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #41202

    Gary Pfeffer
    Participant

    Encase Pro:

    Hi. For some reason, the page that I assign to show the blog entries, shows up blank when selected. The page source for the page has no content whatsoever.

    Not sure what to do. My work around is to just put a main category on the menu so that everything shows up when it is clicked on. But, it isn’t satisfactory. I need the excerpts to show.

    Any help would be appreciated.
    Thanks,

    #41276

    Sushil Adhikari
    Moderator

    Dear Gary Pfeffer,

    Thank you for contacting Styled Themes support team, we are happy to help you.

    We had checked those setting on our end but it’s working fine here, so please make sure you had properly done the configuration. You can see this tutorial:
    1.https://codex.wordpress.org/Settings_Reading_Screen
    2.https://www.tutorialspoint.com/wordpress/wordpress_reading_setting.htm

    You can show excerpt on category by simply setting up on customizer. You can go to

    dashboard-> Appearance -> customizer – >basic settting -> content or excerpt

    You can choose excerpt t0 show excerpt on category page.

    Let us know if you have question or queries regarding to Styled Themes. We will more than glad to assist you.

    Thanks

    #41289

    Gary Pfeffer
    Participant

    By “customizer” do you mean the “Customize” option?

    I can not find “customizer”. when I choose “customize” there is no “basic settings”.

    See attached

    Attachments:
    You must be logged in to view attached files.
    #41328

    Sushil Adhikari
    Moderator

    Dear Gary Pfeffer,

    I am really sorry for the misunderstanding, I had misinterpret the theme name and provide you solution of encounter pro.

    Here in encase pro you need to customize content.php template keeping on child theme. You can find the following code on content.php:

    <div class="entry-content" itemprop="text">
    	<?php the_content(); ?>
    </div>

    and change this code as following:

    <div class="entry-content" itemprop="text">
    		<?php if( is_archive() ) {
    			the_excerpt();
    		} else {
    			the_content();
    		} ?>
    	</div>

    If you are using any post format then you need to customize on specific post format template. for an example for gallery: content-gallery.php

    Note: Please follow this procedure only if you are technically sound on WordPress otherwise please take a help from a developer.

    Thanks

    #41355

    Gary Pfeffer
    Participant

    Ok. I tried your code. There was not content.pgp in the child theme. So I tried both copying encase pro’s content-php to the child theme, and also just trying to modify content.php in encase pro. Either way, the excerpts were displayed but there was no button for READ MORE or CONTINUE so that you could get to the actual article.

    See screenshot…

    Attachments:
    You must be logged in to view attached files.
    #41357

    Gary Pfeffer
    Participant

    I figured this one out, but still need a solution. I had previously altered content.php and took out this section:

    <?php if ( !is_single() ) { ?>

    <h2 class=”entry-title” itemprop=”headline”>
    ” title=”<?php the_title(); ?>” rel=”bookmark”><?php if(! has_post_thumbnail()) { the_title(); } ?>
    </h2>

    <?php } ?>

    because it was creating a redunant title. For pages, The title was showing up in the lighter gray area (which looks nice), but it was also showing up below that in the content area with the actual post. It just looked wrong to see the title twice so I took it out of content.php. So, as a consequence, in a post excerpt, you can not click the title to get to the article, if it isn’t even there. So, I would need the above code snippet, to somehow check to see if we are dealing with a post or a page, and then NOT use the code for posts, but use it for pages.

    The title redundancy for pages, really does not look aesthetically pleasing.

    #41358

    Gary Pfeffer
    Participant

    I figured out the code to use…. It is:

    <?php if ( !is_single() && !is_page() ) { ?>

    <h2 class=”entry-title” itemprop=”headline”>
    ” title=”<?php the_title(); ?>” rel=”bookmark”><?php if(! has_post_thumbnail()) { the_title(); } ?>
    </h2>

    <?php } ?>

    I was correct to copy content.php to the child theme?

    #41398

    Sushil Adhikari
    Moderator

    yes , you need copy content.php on child theme root directory. Please start customizing theme templates only if you are technically sound on WordPress otherwise you will some fatal error which can complete down your site.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.