Home › Forums › Main Forum › Blog page will not display the blog entries
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,
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
By “customizer” do you mean the “Customize” option?
I can not find “customizer”. when I choose “customize” there is no “basic settings”.
See attached
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
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…
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.
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?
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
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.