- This topic has 10 replies, 2 voices, and was last updated 3 years, 3 months ago by
Andrew.
-
AuthorPosts
-
February 21, 2023 at 5:59 pm #2541936
Andrew
I Just had an idea which I assume is not currently possible…
I’d love to have the ability to set an Element so it could be switched on or off on a page/post edit screen – similar to the current ‘Disable Elements’ section.
eg. My current site has a number of page headers: Standard, Video and Image background. It would be great to have a control on the Page to select which header is to be included. Currently I need to find my desired header in the Elements area, include that, then exclude the page from the default Page header.
February 22, 2023 at 4:44 am #2542433David
StaffCustomer SupportHi there,
takes a little bit of code, but my preferred option here is to use a custom taxonomy to facilitate that.
See my reply here:https://generatepress.com/forums/topic/display-rules-to-target-page-options/#post-2366988
February 22, 2023 at 3:12 pm #2543295Andrew
Good idea, thanks David. I still think it would be a great idea to provide some kind of Element control in the Page Edit screen
February 23, 2023 at 4:15 am #2543813David
StaffCustomer SupportYou’re welcome. It is something we are reviewing, i like the Taxonomy method personally, as it does give users who have a lot of elements to manage, to manage it in their own way 🙂
February 23, 2023 at 3:04 pm #2544641Andrew
Cheers. This build actually has 3 pages of elements …. that’s a lot.
I did consider implementing it but would also need to make sure the taxonomy doesn’t appear in the slug structure – a complication I don’t have time for with this site.
February 24, 2023 at 2:01 am #2545110David
StaffCustomer SupportThe Element Post Type isn’t publicly queryable, so its permalinks should never show, and the
wp_sitemaps_taxonomiesfilter hook will exclude that tax slug from sitemaps, so it should not be found. My tests to date seem to have been ok.Yeah 3 pages of elements, i don’t envy whoever has to maintain that lol
February 26, 2023 at 3:13 pm #2547860Andrew
Haha. That would be me 😀
Thanks David.
February 27, 2023 at 3:33 am #2548354David
StaffCustomer SupportBest of luck then 🙂
February 28, 2023 at 4:47 pm #2550693Andrew

So… right here… it would be great to have an on/off toggle switch. This would then set an exclusion rule for that element for this page/post turning a 5 minute job into a 1 second job and making this usable by my client (end-user) who may not be not entirely tech savvy.Even better if that could then be integrated with ACF or Meta Box to allow a toggle between a number of elements. eg:
Select
– Header Standard
– Header Image Background
– Header Video BackgroundMarch 2, 2023 at 1:29 am #2552311David
StaffCustomer SupportWe will be undertaking a full review of Conditional Display rules, so we’ll see what we can do.
March 2, 2023 at 6:01 pm #2553446Andrew
Awesome. Thanks David
-
AuthorPosts
- You must be logged in to reply to this topic.