Archived

This topic is now archived and is closed to further replies.

  • 0

How to hide Scroll Spy by default?


Question

Posted · Report post

I've added the Scroll Spy section to my Blog Post template and it's working great on the pages where I want it, but on the pages where I haven't called the "scroll-header" class I get the message:

"Add HTML elements with a "scroll-header" class and "title" attribute to document. None detected."

I can remove it by going to the individual post settings and hiding the Scroll Spy section for that post, but I don't want to do that for the 500+ posts I don't need Scroll Spy on. Is there way to turn it off by default and enable it for individual posts like many of the of the other sections?

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

I think you can hide the section on just post pages using CSS. Do you want it to hide on all individual post pages?

Share this post


Link to post
Share on other sites

Posted · Report post

I want to hide it on all blog posts by default, and then turn it on for just a few individual blog posts.

So, in the following image that shows the settings for the individual blog post, I would like to check that box to enable the Scroll Spy section on the 10 or so posts I want it on instead of selecting it on the 500+ posts where I would need to turn it off.

post-30839-0-33158500-1347390860_thumb.j

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, I think in order to achieve this you'll have to 'hide the section by default' in the drag and drop area for the blog post template (options tab in the section tab). Then unhide it on the posts you want the scroll spy to work.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, I think in order to achieve this you'll have to 'hide the section by default' in the drag and drop area for the blog post template (options tab in the section tab). Then unhide it on the posts you want the scroll spy to work.

That's how I tried to do it, but I couldn't find the setting. This is where it should be, right?

post-30839-0-03127000-1347408749_thumb.p

Share this post


Link to post
Share on other sites

Posted · Report post

Hmmm I see, its inactive on the blog posts template. I would imagine this is because the framework doesn't handle custom post types. The only thing I can think of in that case, would be to create a custom post type (using a third party plugin etc) and apply the scroll spy to that for the ten posts you want, leaving it off for the rest of the system default posts. I've never worked with custom post types myself though, there could be a much easier option.

I'll leave this topic open and maybe one of the other moderators will be able to suggest something further for you :)

Share this post


Link to post
Share on other sites