-
AuthorPosts
-
January 19, 2018 at 2:36 am #899431
Hello Team Enfold,
I’m having some trouble with my sidebar for my blog entries. I want it to match the way my sidebar is one my pages but can’t seem to get it to work.
The sidebar on the blog posts is not as wide and it not that light purple all the way down and across.
Let me know if you have any insight on how to fix!
January 19, 2018 at 5:30 am #899483Hey lmmoonlight,
Try this code in the General Styling > Quick CSS field:.single-post .container.template-single-blog { width: 100% !important; padding-right: 0px !important; padding-left: 30px !important; } .single-post .inner_sidebar { margin-left: 0px!important; padding-right: 20px!important; padding-left: 20px !important; }
Best regards,
MikeJanuary 19, 2018 at 9:43 pm #899864Close Mike!
is There still seems to be some white space to the right and bottom. Is there a way to just have my single blog post follow the same format? They seem to be automatically generated.
January 20, 2018 at 12:28 am #899903Hi,
Sorry I missed that, It seems that one is created with the template and the other is created with the advanced layout builder, is this correct?Best regards,
MikeJanuary 22, 2018 at 8:34 pm #900955January 23, 2018 at 3:22 am #901101Hi,
Since the two were create with different methods they would not have the same look. When using the advanced layout builder it doesn’t use the template, this is to allow you to create the style or layout you would like. To have a uniform look to all your posts we would advise to use the same method.Best regards,
MikeJanuary 23, 2018 at 8:50 pm #901651Hi Mike,
Seeing the single blog pages are automatically generated how do I do this with the advanced layout builder? This is my issue.
January 24, 2018 at 11:48 am #902074Hi,
To automatically generate a advanced layout builder layout that you have created, first save a layout that you have created by clicking “Templates” in the top right corner of the canvas. Then click the button, “Save Entry as Template” you will be asked to name your new template. Next time you create a new post or page you can click the name you saved to load the template.
Best regards,
MikeJanuary 24, 2018 at 9:33 pm #902330Hi Mike,
I went ahead and did that. How do now assign the single posts to that template now? also how do the single blog templates know where to set the changing information? Sorry for all the questions, this is confusing! Also is there a way to set all the posts to that template automatically?
January 25, 2018 at 3:13 am #902465Hi,
This template would be used for posts going forward, past posts would have to we rewritten to use the post template.
But lets hold on for a minute, and examine what you are trying to achieve, perhaps a little css will save you a lot of work, and perhaps I misunderstood.
What you seem to like about the link in the Private Content area, is that the sidebar goes to the bottom and all the way to the right, and you would like all of your posts to look like this. Is this correct? If so lets try to change it with css.
Please try adding this code to the bottom in the General Styling > Quick CSS field:#top.post-template-default #wrap_all #main,#top.post-template-default #wrap_all #main.all_colors .container_wrap.container_wrap_first.main_color.sidebar_right { background-color: #f7f4fc!important; } .container.template-single-blog main.content { background-color: #fff!important; padding-left: 30px!important; } .template-single-blog footer#socket { margin: 0 auto!important; padding: 0px 50px!important; } .responsive .container.template-blog.template-single-blog { max-width: 100%!important; } #top.post-template-default.single.single-post.single-format-standard.stretched .container.template-single-blog { padding-left: 0px !important; }
Then please clear your browser cache and any cache plugin, and check.
Best regards,
MikeJanuary 25, 2018 at 4:25 am #902492Hi Mike,
That looks much better. One issue though. As you can see when I insert that code now the content gets cut off on the side…
See screenshot
January 25, 2018 at 5:39 am #902543Hi,
Please try replacing the code with this:@media only screen and (min-width: 768px) { #top.post-template-default #wrap_all #main,#top.post-template-default #wrap_all #main.all_colors .container_wrap.container_wrap_first.main_color.sidebar_right { background-color: #f7f4fc!important; } .container.template-single-blog main.content { background-color: #fff!important; padding-left: 30px!important; } .template-single-blog footer#socket { margin: 0 auto!important; padding: 0px 50px!important; } .responsive .container.template-blog.template-single-blog { max-width: 100%!important; } #top.post-template-default.single.single-post.single-format-standard.stretched .container.template-single-blog { padding-left: 0px !important; } }
Best regards,
MikeJanuary 25, 2018 at 9:12 pm #903037Hi Mike,
Thanks for that new code. That seems to fix the side bar.
January 26, 2018 at 12:13 am #903111January 26, 2018 at 12:44 am #903118Sure!
January 26, 2018 at 2:06 am #903124 -
AuthorPosts
- The topic ‘Blog Sidebar Layout Issue’ is closed to new replies.