- This topic has 13 replies, 2 voices, and was last updated 7 years, 3 months ago by kivo.
-
AuthorPosts
-
December 19, 2016 at 3:42 pm #706kivoParticipant
Hello!
Is there a way to change the position of content at the posts page? I need it to be center aligned but it is still at the left, like there should be a sidebar section on the right which is actually empty. http://prntscr.com/dlcbnx
I tried to use different sidebar layouts http://prntscr.com/dlcemx . But it is still left aligned!
December 19, 2016 at 4:56 pm #707AndyKeymasterHi,
This is due to how the WordPress loop takes the current post ID from the last post in the list on the blog page, so the sidebar options won’t work on the page you have set to display your latest posts.
You can work around this by adding a small snippet of CSS;
if you are using WordPress 4.7, go to Appearance > Customize > Additional CSS and add this:
.blog #primary{width:100%;float:none;}
if you are using a version of WordPress older than 4.7, you could install a custom CSS plugin which allows CSS per page/post such as https://wordpress.org/plugins/wp-add-custom-css/ and on your blog page add this:
#primary{width:100%;float:none;}
December 19, 2016 at 5:52 pm #708kivoParticipantYes, it works! Thank you 🙂 .
December 21, 2016 at 8:46 am #710kivoParticipantOne more question:
Is it possible to turn off the featured image at the blog page? http://prntscr.com/dm2r8v It looks not so well because of the different image sizes.
There is a way to remove image from the post page, but in this way it will be no picture at the inside page.
December 21, 2016 at 11:51 am #713AndyKeymasterFor the post, you could remove the featured image and insert an image into the post content instead.
Or if you really need to keep the featured images, add this CSS:
.blog .entry-figure img{display:none;}
December 21, 2016 at 12:14 pm #714kivoParticipantWhere should I insert this code? If into the blog page (via addiational css plugin) it doesn’t work.
http://prntscr.com/dm54ggDecember 21, 2016 at 9:22 pm #721AndyKeymasterSorry, I should have said add it at Appearance > Customize > Additional CSS (not in the page editor for your blog page)
December 22, 2016 at 9:19 am #722kivoParticipantThanks!
December 24, 2016 at 12:00 pm #726kivoParticipantIt is also interesting about showing the inside pictures at the blog page.
Right know it looks like isn’t working.
http://prntscr.com/dne19j
http://prntscr.com/dne1maFor the post, you could remove the featured image and insert an image into the post content instead.
December 27, 2016 at 9:48 am #732kivoParticipantHello!
Is it possible to show the inside post pictures at the posts page?
Right know it looks like isn’t working.
http://prntscr.com/dne19j
http://prntscr.com/dne1maMaybe it’s needed a some code?
December 27, 2016 at 11:10 am #733AndyKeymasterIt is correct. It only shows text from post content along with the featured image.
August 21, 2017 at 5:27 pm #1773kivoParticipantHello!
One more question about the blog posts aligment. I need to show only posts without the sidebar space.
What css should I add to achieve the same result at the search page as it works at the blog #primary page?
August 22, 2017 at 8:28 am #1782AndyKeymasterHi, similar to the blog page, add this CSS:
.search #primary{width:100%;float:none;}
August 22, 2017 at 10:52 am #1784kivoParticipantThanks, it works!
Nice theme and  excellent support!
-
AuthorPosts
- The topic ‘Posts page aligment’ is closed to new replies.