How to remove certain widgets on the Post Preview page - Blogxhtml
News Update
Loading...

Sunday, 16 August 2020

How to remove certain widgets on the Post Preview page


Shortly before publishing an article on Blogger, we usually use the post preview feature to check the post order that we just created. Well, usually there are certain widgets (such as Featured Post, Featured by Label, etc.) which are actually only displayed on the main page (homepage), suddenly appearing on the Post Preview page. Personally, the appearance of this unwanted widget can be very distracting while on the page. How can I prevent the widget from appearing during Post Preview? Here's how!

How to remove certain widgets on the Post Preview page

Please go to the blog dashboard, then go to Theme> Edit HTML

Click the Jump to Widget dropdown menu , then select the widget you want to hide on the post preview page (in this tutorial, for example what you want to hide is the Featured Post widget).
How to hide widgets on post preview page

After being brought to the Featured Post widget markup, please place the following conditional tags like this:
<b: if cond = 'data: view.isPreview'> <b: else />
--- Featured Post widget code here ---
</ b: if>

Like the following picture:
How to hide widgets on post preview page

After that, save Theme!

Please do the same with other widgets that you want to hide on the Post Preview page.

If anyone has another method besides the above method for this problem, please share it in the comments column.

Also check out other frequently asked questions about templates: When the <head>, </head>, and </body> codes are not on a blog template, how do you find them?

So many tutorials this time, hopefully useful!

Share with your friends

Add your opinion
Disqus comments
Notification
BLOGXHTML.BLOGSPOT.COM is a blog where you can learn HTML, CSS, and JavaScript, SEO along with creative CSS Animations.
Done