• Resolved sumcan

    (@sumcan)


    Hello,
    I am trying to list blog posts in one specific category on a page using the following php:

    <?php $blog_posts = query_posts('category_name=test&showposts=3');
      foreach($blog_posts as $post): ?>
      <?php endforeach; ?>

    However, the page shows the posts with a very squeezed version of the blog right sidebar , but not the page right sidebar
    (I use slightly different right sidebars for the posts and pages).
    If I use the full width template, I only see the blog posts and no right side bar at all.
    I assume there is a kind of conflict between the blog default template and the page default template.
    I guess I could use the left column template and use the left sidebar to show the same widgets, but if there is any way I could show the blog posts and the right sidebar (either for blog or page, I don’t mind as long as it’s not squeezed down) I would appreciate it.
    Here is my test page:

    https://ccgi.peony.plus.com/test1/

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Generally if you want to make theme file changes, it’s best to use a child theme (which it appears you are not). Otherwise when a theme update comes along, you lose everything.

    Your right sidebar looks like you modified it and it has this in it:

    <div class="col-md-4">

    You need to remove that container because it’s being loaded inside another one that uses this:

    <div class="col-lg-4">

    ….so that sub container of col-md-4 is only 1/4th of the width….this relates to the Bootstrap grid layout

    Once you take that out, your right column goes back to normal.

    Thread Starter sumcan

    (@sumcan)

    Thank you for your help, I will create a child theme and will start from it again.
    To be honest I don’t remember modifying the sidebar but now I know what is causing the problem so I will look into it.

    Thank you very much!!

    Theme Author Shaped Pixels

    (@shaped-pixels)

    You’re very welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog posts on a page with the right sidebar’ is closed to new replies.