Support Forums for LiveMesh Themes & Plugins › Forums › Enigmatic Theme Support › Split: How Do I Add A "Content" Area To The Top of A Blog Template
Tagged: blog
- This topic has 9 replies, 3 voices, and was last updated 11 years, 8 months ago by
reececropley.
-
AuthorPosts
-
August 7, 2013 at 10:50 pm #1270
reececropley
MemberHi, I have added the following code in my blog-content.php. It hasn’t made any effect to my news (blog) page.
Just to clarify, this code was to show the content written in the admin side to display above the feed of posts?
I have created a news page in the admin side and given it the template type of blog. I can see the content I have written when changing the template type.
Also, just to test things I have added a class of test to the hfeed div. When inspecting the source this class didn't show. Perhaps I have the wrong file, or wrong part of the file?
August 7, 2013 at 10:56 pm #1272reececropley
MemberI had the code in the wrong place I needed to add it before the if (isset($query_args) around line 373.
Thanks for your help. This forum has great support.
August 8, 2013 at 7:53 am #1276engage
MemberHi there,
So I tried it and adding the code worked! But the styling is off and now I cannot figure out how to edit it.
Here is the link:
http://kerygma-ministries.comI would like to decrease the padding on the top and the bottom, as I want it to align with the sidebars on the top. On the bottom, it’s too far away from the blog posts.
Thanks so much!
August 9, 2013 at 4:22 am #1283engage
MemberAny thoughts on this? Thanks.
August 9, 2013 at 12:02 pm #1284livemesh
KeymasterYou can insert the following Custom CSS into theme options panel –
#content { padding-top: 0; }
and see if that helps you align with the sidebar. Pls do check if the layout looks ok on other pages/posts when you make this change (I did a quick check and things seemed ok).
And pls use [divider_line] shortcode instead of [divider] shortcode. Hope this helps. Let me know if you still have trouble. Thanks
August 10, 2013 at 12:28 am #1286engage
MemberThanks!
That worked alitttle bit, but not enough. I think we will be adding an image right there, and as you can see when I add the image, it is still lower than the two side bars. Any thoughts on why I can’t seem to make it flush?
Thanks so much!
PS: I also changed the divider like you suggested.
August 10, 2013 at 7:47 am #1287reececropley
MemberHello again livemesh,
I have this displaying the page content above the feed of posts, now would like it displaying below.
I would have thought you would add the mo_show_page_content(); after the endif; of if(have_posts():, roughly around line 433, like so:
`<?php endif;
mo_show_page_content();
?></div>
<!– .hfeed –>`Unfortunately this prints out the content of the last post. Am I placing it in the wrong position? Or is it because its run the if(have_post()); its loading the page content from them?
Any help is greatly appreciated.
August 10, 2013 at 7:54 am #1288livemesh
KeymasterPlease put this code in the custom css tab of the theme options along with the previous one I suggested
.layout-3c-c .sidebar-left-nav, .layout-3c-c .sidebar-right-nav { margin-top: 5px; }
Also, Please take a look at this forum post to know how to fix simple styling issues. https://www.livemeshthemes.com/support/forums/topic/how-to-fix-a-few-styling-issues-instantly/
Thanks!
August 11, 2013 at 7:57 am #1298livemesh
KeymasterRegarding the question on printing of the last post at the end of the content in the blog, pls use the following code after the
–
Should work fine. There is a
wp_reset_query
at the end of the function but that needs to be moved up since you need access to the content of the page.August 11, 2013 at 8:42 am #1299reececropley
MemberThank you, works perfectly.
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)- The forum ‘Enigmatic Theme Support’ is closed to new topics and replies.