Split: How Do I Add A "Content" Area To The Top of A Blog Template

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: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1270
    Reececropleyreececropley
    Member

    Hi, 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?

    #1272
    Reececropleyreececropley
    Member

    I 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.

    #1276
    Engageengage
    Member

    Hi 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.com

    I 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!

    #1283
    Engageengage
    Member

    Any thoughts on this? Thanks.

    #1284
    Livemeshlivemesh
    Keymaster

    You 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

    #1286
    Engageengage
    Member

    Thanks!

    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.

    #1287
    Reececropleyreececropley
    Member

    Hello 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.

    #1288
    Livemeshlivemesh
    Keymaster

    Please 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!

    #1298
    Livemeshlivemesh
    Keymaster

    Regarding 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.

    #1299
    Reececropleyreececropley
    Member

    Thank you, works perfectly.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.