Community Forums › Forums › Archived Forums › Design Tips and Tricks › Static content on top of Blog Page
Tagged: streamline pro
- This topic has 12 replies, 4 voices, and was last updated 9 years, 2 months ago by
torlowsi.
-
AuthorPosts
-
September 15, 2014 at 12:57 pm #124539
torlowsi
MemberLooking for some help. Have tried several suggestions from online so far and nothings working.
I need to have a graphic above the blog posts on blog page. I've tried creating a blog page template as suggested, but that only makes the image show twice with the page title, instead of the header image and then the posts.
I also tried adding a blog header widget area as suggested here (http://www.studiopress.community/topic/need-static-text-on-blog-page/) and neither are working.
The most frustrating part is that I just successfully did this on another site last week, but now I can't get it to work. Any ideas? Please?
http://kim.beyondtheoffice.net/blog/September 15, 2014 at 2:54 pm #124555JanHoek
ParticipantHi, did you try this tuts? http://wpsites.net/web-design/add-content-before-posts-blog-page-only/ I now this one is working because I tried it last week myself.
Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.
September 15, 2014 at 8:09 pm #124593torlowsi
MemberNo luck. that's basically the first thing I tried. it's causing the page title and content to display twice but no blog posts.
September 15, 2014 at 8:27 pm #124595Genesis Developer
MemberAre you using Genesis BLog page template? And where are you putting the static content for blog page?
September 15, 2014 at 8:44 pm #124599torlowsi
MemberIf I use the default blog page template, I just get the page content. If I use a customized blog page template as recommended here (http://my.studiopress.com/snippets/blog-page-content/) or like above, I get the page title with static page content twice.
September 15, 2014 at 9:27 pm #124606Genesis Developer
MemberGo to Reading Settings page ( Settings->Reading) and you'll get Front page displays section. Select the 'blog' page for posts page and save the changes. Now check the blog page. Let me know it is working or not
September 15, 2014 at 9:30 pm #124607torlowsi
Membernow i just get the blog posts - no static content at the top.
September 15, 2014 at 9:37 pm #124608Genesis Developer
MemberAre you keep the php file name "page_blog.php" and follow the Genesis instruction(http://my.studiopress.com/snippets/blog-page-content/)
September 15, 2014 at 9:49 pm #124609torlowsi
MemberYes. File name page_blog.php. Content is exactly as described in the post you linked. Blog page in Settings > reading set correctly. Still just see blog posts, no static content.
As I said before, I know this method works because I just did it on another site recently and it went very smoothly. No idea why it's not cooperating here.
September 15, 2014 at 10:26 pm #124610Genesis Developer
MemberI just tested the code in one of my dev site and it is working. I used following code in page_blog.php file and put in my child theme folder
<?php /** * Genesis Framework. * * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. * Please do all modifications in the form of a child theme. * * @package Genesis\Templates * @author StudioPress * @license GPL-2.0+ * @link http://my.studiopress.com/themes/genesis/ */ //* Template Name: Blog //* The blog page loop logic is located in lib/structure/loops.php add_action( 'genesis_loop', 'genesis_standard_loop', 5 ); genesis();
September 16, 2014 at 11:13 am #124685Brad Dalton
Participant@torlowsi Check your code and make sure you're not using the
genesis();
closing tag twice.
You may have it twice in the file or you may have it once in the file and another in a custom function in your functions file.
September 16, 2014 at 7:17 pm #124717torlowsi
MemberNope, only on there once.
Here's my Functions.php - http://pastebin.com/FsvTsFRt
and blog template - http://pastebin.com/7Cu2QzKv
September 16, 2014 at 8:44 pm #124722torlowsi
Membercould this be something in the server setup that's causing this?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.