• Siddharth Giri

    (@siddharthgiri)


    Hello!

    I want to show some blog posts in full with but I cannot find a template option in Blog Posts.

    I can see the Template option (Page Attributes) in the page but cannot see in posts.

    Can you tell me how can I select different template for the posts?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author themevision

    (@themevision)

    Hello, @siddharthgiri!

    Insert the following code into Customizing->General->Additional CSS:

    .single-post .site-content,
    .single-author .site-content{
        flex: 0 0 100%!important;
        max-width: 100%!important;
        padding-right: 0px!important;
    }

    Regards

    Thread Starter Siddharth Giri

    (@siddharthgiri)

    This code is working but this code is also hiding the sidebar and converting all the posts into a full-width post.

    Please read my question again, I want to show full-width only in a few post, not in all posts.

    Theme Author themevision

    (@themevision)

    Hello, @siddharthgiri!

    In that case, you need to find the specific post ID number for the single post in which you want to apply the code.

    To discover the post id, please follow the steps below :

    1. Navigate in your browser to the Single post you want to work with.
    2. Right-click on that page (anywhere) and select “Inspect Element“.
    3. Search inside the site’s markup for the body tag. It should be one of the first element in the source.
    You’ll see it has many classes. Look for the class that starts with “postid-…”. That’s the class you should use.
    https://prnt.sc/s7y7dz

    You can check THIS video guide

    then, Open the Customizing->General->Additional CSS
    and insert the below code.

    .single-author .site-content,
    .postid-4553 .site-content,
    .postid-4253 .site-content
    {
        flex: 0 0 100%!important;
        max-width: 100%!important;
        padding-right: 0px!important;
    }

    Add the Post selector for every Single post you want to change the width. (Replace the post ID.) If you want to select more posts at once Separate the selectors with a comma.

    Regards

    Thread Starter Siddharth Giri

    (@siddharthgiri)

    Thanks for the reply!

    I know how to do it manually using CSS code but I was looking for a normal way(Template option)

    Please try to include this in the next update.

    Regards,
    Siddharth Giri

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How To Full Width Template For Blog Posts?’ is closed to new replies.