[Resolved] Problems in editing "posts" page

Home Forums Support [Resolved] Problems in editing "posts" page

Home Forums Support Problems in editing "posts" page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #333994
    Afroze

    Hi,

    I try to edit the posts page from the wp-admin console, but it does not work.

    1) I go to to: wp-admin -> pages -> all pages -> ‘posts page’. From here I try to change the “sidebar layout” and the “page builder container”, but the effects are not seen in the site.

    2) I edit my style.css file to add some change specific to posts page, in the following way:
    .page-id-xx … (here xx is the page id i find for posts page from the “pages” section of wp-admin.
    However, I also don’t see the desired effects in the live site.

    The only way I seem to have effects on the blog page is when I change it through the customize feature, for example:
    layout -> sidebar -> blog sidebar layout

    #333996
    Leo
    Staff
    Customer Support

    Hi there,

    1) Unfortunately WordPress ignores all metaboxes on index pages (blog, archive etc). So you would have to the options in the customizer as you stated (layout > sidebar > blog sidebar layout).
    Page builders generally don’t work on Blog page either so that metabox shouldn’t be needed.

    2) Try adding .blog in front of the CSS selector. Make sure you are not editing the theme’s CSS file as the changes will be erased through updates. One of these method is the best:
    https://docs.generatepress.com/article/adding-css/

    Let me know if this answers your questions.

    #334006
    Afroze

    Thank you for the quick reply, it was very helpful, I successfully added .blog in front of the css selector.

    Basically I want a css feature only for blog related stuff on my web page. This includes blog page, categories pages, and individual posts.

    I was successfully able to extend the css to categories by adding .category in front of the css selector. However, I can’t figure out how to do that for individual posts, is there any keyword for that?

    P.S. I have a child theme for editing the css, so it should be good. Thanks for pointing out 🙂

    #334007
    Leo
    Staff
    Customer Support

    .single is what you need. There is also .archive too which usually goes with .blog

    #334011
    Afroze

    Ah thanks a lot!

    #334038
    Leo
    Staff
    Customer Support

    No problem!

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