Hi Wes, and a belated Happy New Year!
Just a note to let you know that I had to download a fresh copy of the Ambition theme. While I was able to remove the Blog section by using Customizer, that only removed a portion of it. I still had to edit the new front-page.php file (instead of the previous home.php) and use the code you provided above to remove the Blog Sidebar from the home page.
Terri
Can you post the link to your Blog, or some of the Posts where the Images are doubling? If possible, would you be able to create a Temporary User/Password so I can login and see if I can quickly fix it myself?
“Can I have a full width featured images before content? Can I insert post title over this images? This should be awesome… (like or similar this:”
This is possible, but it would take some time to create Custom Code in order for that to work. Since it doesn’t come with the theme by default, you would have to search to see if there is already a tutorial available, or possibly Hire a Dev to code it up. I’m sure I could do it, I’d just need some time to put it together.
“comparing my code with your code the only difference that I can find is this piece of code at the end of your sent code “->”. Is this an error?”
That was an error when I wrote it here in the post. Whenever we edit our comments here in the forum, sometimes bbPress adds <!--formatted-->
at the end of the post if there’s code….I thought I erased it all but must have left a little. Just fixed it.
If you want me to try and login and fix the double images for you just let me know.
Which version are you using? In the latest version of this theme, we’re using this code –
// Add featured image above the entry content
add_action( 'genesis_before_entry', 'legacy_featured_photo' );
function legacy_featured_photo() {
if ( ! ( is_singular() && has_post_thumbnail() ) ) {
return;
}
$image = genesis_get_image( 'format=url&size=single-posts' );
$thumb_id = get_post_thumbnail_id( get_the_ID() );
$alt = get_post_meta( $thumb_id, '_wp_attachment_image_alt', true );
if ( '' == $alt ) {
$alt = the_title_attribute( 'echo=0' );
}
printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', esc_url( $image ), $alt );
}
That code will produce the Featured Image to show on the Blog pages, as well as the Single Blog Post pages as well. You can edit the position you want the image to appear in this part of the code –
add_action( 'genesis_before_entry', 'legacy_featured_photo' );
All – I have noticed one more thing, the social icons do work for me on both computers and browsers only in the sub pages and blog pages, not on the front page. Hope that helps some.
Well, i’ve added something in the function.php but i erase those changes and it’s still the same. So i ve added it again.
I even deactivated the plugins but the error 500 is still there. To be honest i don t really know what it could be… Based on the log i think that index.php can t retrieve the file that is looking for, wp-blog-header.php, but Optimal theme does t have it..
Any idea? Thanks
Hello,
I create normally a category and i put it in the top menu, then in sidebar and then again, for testing in the footer. My category doesn’t work. It shows http 500 error. here the log:
[28-Dec-2016 22:54:24 UTC] PHP Fatal error: require(): Failed opening required ‘/home/redlplzu/public_html/wp-content/themes/optimal/wp-blog-header.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in /home/redlplzu/public_html/wp-content/themes/optimal/index.php on line 17
So i probably missing a wp-content/themes/optimal/wp-blog-header.php file but i don t have it, neither in the backup, neither in the original Optimal theme.
The blog is: http://vaidiskate.com/
What can i do? Cheers, Paolo
If this has been fixed, which theme file needs to be updated? I don’t want to overwrite all of the changes I’ve made. I’ve uploaded the latest frontpage.php but I’m still having this issues. When you click the “next page” link at the bottom of my homepage, it doesn’t go to the blog page, it goes back up to the top of the homepage. I need it to go to my blog page.
Thanks.
Look in your functions file and remove (or comment out) the code for the Featured Images –
//* Add featured image above the entry content
add_action( 'genesis_entry_header', 'elevate_featured_photo', 5 );
function elevate_featured_photo() {
if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
return;
if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
}
}
This code is for the Featured Images to show on your Single Pages. Once you remove this code, it won’t show up on your Single pages, but it will still show on your Homepage as well as the Blog like normal.
Yes that worked! Thank you.
Lastly, is there anyway to change the order of posts in my blog role?
I posted some of my best articles first and would like them near the top..
If not then don’t worry.
Thanks
There’s some extra/empty p
tags that seems to appear when I look at the source code. Maybe it’s coming from the widget Paragraph Checkbox? Either way you can add clear: both;
to your button and it should show up in the center. Here’s an example where I use it as a div (you can use the p
tag if you prefer) –
<div style="clear: both;"><a href="http://10insights.com/blog" class="button large customOrange" style="
">Show More Insights</a></div>
Here’s what it will look like when I add that code to your site – http://i.imgur.com/jbE6z6k.png
Here is a link to the site : http://kholzapfel.staging.wpengine.com/
Thanks that worked.
What I want the blog page to show is:
Blog1 Sidebar
Blog2
Blog3
Blog4
At the moment it is showing as:
Blog1
Blog2
Blog3
Blog4
Sidebar
Also I selected ‘Include the featured image’ in the theme settings and I now have a huge image showing at the top of each blog post. What I really want it just a small image on the top left and the blog to begin on the right of the image. Any ideas why this is not working?
Thanks,
Shikha
Thank you! That worked! How do I set the ‘Read More …’ link after the paragraph? Also when the blog is displayed in it’s full page my sidebar begins at the bottom of the blog post. How can I display it parallel to the blog post?
Thanks,
Shikha
Those are your Featured Image Thumbnails. If you don’t plan to use them, you could uncheck the Featured Image option in your Genesis Theme Settings.
If you do plan to use them on your Blog page but prefer to not have them show on your Single Posts/Pages then you can comment out or remove the code from your functions file –
Here’s the code that shows Featured Images on your Single Posts Pages (functions.php file) –
//* Add featured image above the entry content
add_action( 'genesis_entry_header', 'followme_featured_photo', 5 );
function followme_featured_photo() {
if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
return;
if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
}
}
What’s your site link? (for the logo)
For the second issue, I believe they got this fixed in an update a few months ago – https://appfinite.com/topic/ambition-theme-next-buttons-on-blog/ The front-page.php contains the update needed for the fix. If you’re referring to something different then I’ll have to take a peek at what it could be.
Hi,
I want to customise my blog page to show each blog with an image, a short excerpt and read more link. I can get this look on the front page but when I click on the ‘More Posts’ button on the front page I get sent to a blog page with the entire content of each blog. Please help!
Thanks,
Shikha
Hi Richard,
I just checked your link and it looks like you may have a Page set as your homepage which is preventing the Homepage widgets from showing (like the demo). I would need to take a closer look to see what’s going on for sure, but either way I know I can get it figured out pretty quickly.
To activate the Homepage (like the demo), just drag a widget over into one of the Homepage widget areas. Once you do this, it should automatically show that widget on your homepage. If you don’t add any widgets, then the theme is designed to show your Blog posts by default. So if you want to activate and use the custom homepage template like the demo, all you would need to do is add a widget into one of the home widget locations.
Unlike other themes, you won’t need to create a page and label it home, or change your Front Page Displays (in your settings) to show your homepage. Simply using the homepage widget locations will activate it immediately. I wrote a short tutorial/explanation here in the tutorials – https://appfinite.com/tutorials/how-to-setup-the-home-and-blog-page/
If adding a widget to one of your homepage widgets isn’t showing on your homepage, then double check your Front Page Displays setting. Go to Settings > Reading > Front Page Displays and make sure it’s set to Latest Posts, and that should fix it.
I can login for you and install the demo content if you want. It would only take a sec. I can see if there are any issues preventing you from setting it up as well. All I would need is a temporary login.
I can get it all setup in a matter of seconds. Just let me know!
Hi guys,
my featured custom post widget is behaving a bit weird. i had a button after the widget that directed my users to my blog page. it used to work perfectly before but for some reason it doesn’t work anymore. after a lot of testing i realized the problem is being caused by the featured custom post widget itself. you see, if i add a button after the widget (using the text widget) it sort of gets pulled together in the second column of the featured custom post type widget. if i then add another button as a text widget, it works as the first one should have.
Hi there,
I have two issues:
My logo is not showing up on mobile devices. It was previously but suddenly disappeared. I’m wondering if it’s due to the # of Nav menu items I have?
Second issue is the “Next Page” link under the blog posts on my homepage takes you back up to the top of the homepage and not to the blog.
Can you tell me how to fix these two issues?
Thanks,
Stephanie
Thanks Eric. I was hoping there was a way I could possibly specify which category ids to include on the portfolio page so I don’t repeat everything on the blog on the portfolio page as well.
“I’ve got one category (blog) that has posts which I want to show on the portfolio page but I don’t want to exclude those posts from the blog page.”
By default they won’t be excluded from your Main Blog page. The only way they’ll be excluded from your Blog page is if you manually add your Category ID’s under Exclude Categories
in the Blog Page Template
section from your Genesis Theme Settings page. If you don’t do that then those same posts in your Portfolio will show up on your Blog page since they are all considered Posts.
“I was wondering if I could use something apart from categories to filter the posts that will go to the portfolio page.”
Only Category ID’s will work for this type of Portfolio. WordPress (in addition to Genesis) allows you to show specific Categories only, there’s no code/option to show regular Tags.
Thanks Eric. I did read the tutorial and I understand about using categories to specify what you want to show on the portfolio page.
I’ve got one category (blog) that has posts which I want to show on the portfolio page but I don’t want to exclude those posts from the blog page. I don’t want to create a separate category for the posts that will be going to the portfolio page because they’ll then be excluded from the blog page.
I was wondering if I could use something apart from categories to filter the posts that will go to the portfolio page.
Yes this can be done with Categories. I mentioned how to do that in one of your previous threads (in case you missed it) – https://appfinite.com/topic/portfolio-page-template/#post-19826
They have Portfolio Tutorials that show you how to display a specific category on your Portfolio page. You can have Multiple portfolio pages that display separate categories individually…..AND you can even exclude the posts that show up on your Portfolio pages from showing up on your regular Blog page if you wanted to as well.
You can find all of these here – https://appfinite.com/tutorials/ and this link can be accessed from the Tuts link in the menu.
I want to create a portfolio page for a selection of my blog posts. I don’t want all my posts to show on the portfolio page. Is there a way to select posts by say tags, instead of categories for the portfolio template?
Thanks.
Ok, i fixed the First issue by this thread
That did the trick
Now working on the blog post on home page
Life’s Hard, its a lot Harder if you are stupid
If you go here. I have a featured image that is showing up at the top of this nonsense story. Ive worked with it and cant seem to get it gone. I want the featured image to show up such as here , but i would rather it not be at the top of the post when you click on the story. I have deleted the featured image, but for some reason it wont disappear off the top.
Im still having blog post show up on the home page after i chose
Front Page Content Section Display- Hide content section, im kinda stumped
Thanks
Life’s Hard, its a lot Harder if you are stupid
The most recent edit was to comment out the featured image appearing on top of blog posts.
Thank you for your response. Not exactly a border around the post, but a small image divider. I am trying to accomplish what you see on this page:
http://www.nomadicmatt.com/travel-blog/
You can see the divider is a small image of a line with the globe in the center…I would like a divider image like this between each of my posts.
Does that help?
Thank you!
Do you want a border after each post on the Blog page? If not do you have a link so I can see the page you’re referring to?
Hi Wes –
Well, just when you think you’re done, one more thing unravels. : ) Thanks for taking a look at this for me.
I’m adding an author box to my blog posts. I wanted some additional flexibility in styling and positioning, so I added php code from https://www.wpstud.io/create-custom-author-box-genesis/ which works fine.
I’m also adding in a promotional area below the author box. The plugin is Advanced Ads and it can be positioned by selecting Genesis hooks, which also works great. It’s currently positioned at genesis_after_loop which works fine until I activate the author box code.
So here’s the issue. By default, the author box is positioned at the hook genesis_after_entry. This doesn’t work because it places the author box under the promotional area instead of above it and immediately after the post. I changed the php code so that the author box is positioned at genesis_entry_footer. So far, so good.
Trouble is, when the author box is activated it looks like somehow it’s calling genesis_after_content – which has the effect of displacing genesis_after_entry, genesis_after_endwhile, and genesis_after_loop up into the top of the sidebar (and moves genesis_before_sidebar_widget_area way down the page (so my recent posts are near the page bottom.)
Easier to see in screenshots. Here are the hooks before adding in the author box.
And here’s how it looks after.
I’m guessing that wp-includes / author-template.php is calling genesis_after_content, but I can’t find where (or maybe I’m way off on this).
Would really appreciate a second set of eyes on this when you have a chance. Help me Obiwan, you’re my only hope. : )
Thanks Wes,
Brian
The Aspire Portfolio template can only display Posts. Think of it as your blog redesigned in a portfolio format. You can assign certain categories to only show on the Portfolio page and exclude them from showing up on your regular Blog page. See here – https://appfinite.com/tutorials/
It’s designed to be simple to avoid overloading too much code which would make the theme too slow. For what you’re needing to do, it would be better to search for a dedicated portfolio plugin to use with the theme. I haven’t used any myself, but you can search for a free plugin through the WordPress repository – http://wordpress.org
This reply has been marked as private.
Try changing the Permalink in the page editor (it’s right under the Title).
Also make sure and select the Blog Template in the right hand sidebar on the edit page.
Hello,
How do i create another blog page?
The current one has “Template” in the URL which I can’t seem to get rid of…
I have created a blank page but obviously now its not showing all of my latest post – how do i edit this page so it becomes my new blog page?
Thanks
Hi Wes –
After all we’ve been through on this thread, I really hate to say this – but I think I’m having the same issue as Artist Clara.
After we changed the featured image setting (Genesis / Theme Settings / Content Archives / Featured Image) I discovered a stray image on my home page. I believe it’s posting to the beginning of the content Front Page Content Section Display. (Under Appearance / Customize / Front Page Content Section Display I have it set to “Show content section” – and even though I’m choosing not to display blog post updates here, I needed the section visible so I could build out the rest of the front page).
So it turns out that the image displayed was the very first image that was uploaded to the image library. (It’s also one of the images that displays in the testimonial slider, which is the first section in the Front Page Content Section Display). I thought it might have something to do with an image setting, so I deleted out the image. After that, the old image was immediately replaced by the next image in the library.
And, of course, the stray image disappears as soon as I turn off the featured image setting. I’ve left it displaying on the website now (patschuler.com).
-sigh- Has to be something straightforward that we’re overlooking here, just not sure where to start digging.
If you would be willing to take one more look at this, I would really appreciate it. Thanks as always for the great help!
Brian
Wes,
I don’t think I had added that line. I just did but didn’t see any difference.
Thanks for asking. Yes, I’ll like the header area to change when you scroll down to a color different from black.
My question is could an image be used for the background of the header instead of a solid color like you have in this header?
Wes,
I tried reading from the beginning of this thread but I’m not sure I got exactly what the problem it is that you were trying to solve with featured posts. I have a featured post issue that I wonder if is the same as the one you were discussing here.
I want my featured images to show on my blog posts. I have checked that small featured image box shown above, but the result is that I have images showing on pages and posts on which I didn’t set featured images but have images in the content of the pages.
My question is, how do I limit featured images to only posts on which I select “set featured image”?
Thanks.
This reply has been marked as private.
Hello,
I would like to remove the site-inner/default loop/blog section on the home page that displays below front-page-11 and the footer widgets. Said another way, I only want the widget sections on the home page.
I’ve stripped out quite a bit of code from the front-page.php file, but it still appears, so I’m stumped.
Thank you!
I found this from a tutorial. Try adding this to your functions file and replace -1
with the categories you want to exclude –
/** Exclude certain category from posts */
add_action( 'pre_get_posts', 'be_exclude_category_from_blog' );
function be_exclude_category_from_blog( $query ) {
if( $query->is_main_query() && $query->is_home() ) {
$query->set( 'cat', '-1' );
}
}
I just purchased this theme and it worked and pulled up the desired page but I wanted to add my own picture, and ever since then the home page doesn’t display. My blog posts are there but the background empty. I was trying to set this up correctly and just starting a new blog. Help!
Hi Wes,
I added on the Facebook comments plugin because I want the comments on my blogs to be Facebook comments. How do I remove the comment section that comes with the theme so it’s just the Facebook comment section?
Thanks mate!
– Grant
Thanks for the tips Wes! The only text I want to be bold in front page 12 is the heading. But when I put it in the widget title spot it’s ginormous. So I made it strong/bold. And, I made the blog content archive summaries appear. But now the pagination is off at the bottom of the page. https://karendoniere.com/blog
Thanks again,
Karen
For some reason this code
shows up in between each of those divs in front-page-12 when I check your source code. See line 319, 329, and 339 – view-source:https://karendoniere.com/
Did you add that in directly? If so, you can remove it and everything should align.
To reduce the content on your blog summaries, go to Genesis Theme Settings and look at the Content Archives section and you can set a content limit from there.
Also, you have <strong>
in those sections that are showing up as bold, so that’s why it’s showing up like that.
Fantastic observation Wes! Okay, so I’ve fixed those issues. And, thank you for everything! This site is really coming together.
1. On front page widget 12, how do I move the monitor up (last image)? Is it too small?
2. How do I allow blog post summaries to show on the blog page instead of full articles?
3. Why is the text in front page widget 3 and 13 bold? I’ve looked for a setting?
Thanks again,
Karen
Are you referring to the Blog Posts on the Homepage? If so, head over to your Customizer page and click the “Front Page Content Settings” and you’ll see the option to add a Headline
Journal Section Heading Text
Choose the heading text you would like to display above posts on the front page.
This text will show when displaying posts and using widgets on the front page.
For your other question, are you saying you want the Front Page 1 and Front Page 2 widgets to show up at the top of every page?
No, I meant in the blog loop on the home page. Would love to only include certain categories.
I’m not sure where the loop is called in the theme. Could remove & replace with one with category filtering.
Thanks!
Thanks for this. 400x looks better. I’m not sure how to resize the image to make it better, but good enough for now.
In addition to the question about getting this image and opt-in box to appear at the top of every page, is there a way to add headlines to the blog posts?
Thanks! 🙂
It looks like you already got the blog setup on the homepage.
I went to Genesis Settings > Content Archives and set a 500 Character limit and checked the box that says “Include Featured Image”. You can change how many Characters show from this section, and you can also change the Image size if you want.
Let me know if that helps
Hi Wes,
One other thing, I’m confused as to why my blog page isn’t setup on the home page? That is the way it is setup on the theme example. So why is the “About Us” on my home page?
Also, when I go to Customize > Static Front Page > Front Page “Blog” or “News” it is showing full length posts, not a small paragraph with a picture like on the theme template. I’m confused here…
– Grant