Wordpress nested showhide6/22/2023 You can see below an example of new created grid gallery object where you can add items using accordion method. activeSelector and activeClass are used if you need to add or delete activation class of nested object while performing events.rootSelector parameter is used if events parameters are set.Nested Pages may be enabled for any post type, and is configurable by post type. To access the default the pages screen, select Default Pages located in the Pages submenu, or on the Nested Pages screen Additional options are available through the plugin settings at Settings > Nested Pages. Best Show-Hide/Collapse-Expand Plugins hide 1. Nested Pages replaces the default Page management screen. In this article, we have listed our top picks to help you to choose the right plugin. If these selectors indicate to the same element as rootSelector we should equate them to empty string. You can show/hide content to your visitors on posts and pages of your WordPress site. activeSelector parameter and event selector selector are used according to rootSelector. With this option, you can set any to show/hide on particular screen sizes. This plugin is similar to Wp-ShowHide that extended for nested shortcodes, custom style and two link toggling the content.events parameter is used if you need to perform some action (for example show/hide edited object if it is visible while performing a certain action only) with nested object while editing it (folding/unfolding accordion control).'onInactive' => array( // JavaScript event when item is de-activated. 'event' => 'click' // JavaScript event name 'selector' => '> a', // CSS selector of the element 'onActive' => array( // JavaScript event when item is activated. ![]() 'activeClass' => 'active' // CSS class name of the active element 'activeSelector' => '> a', // CSS-selector of the active element 'rootSelector' => '.item', // CSS-selector of the internal object 'text' => _('Add new item', 'domain'), // text of the button to add new element 'count' => 2 // number of items automatically created for new object 'parameter' => 'title' // nested shortcode title attribute name implement a simple vertical menu digg-like using CSS and javascript to show/hide sub-menu. ![]() 'default' => _('Item label', 'domain'), // Default text However, throughout this wide selection of WordPress plugins. 'label' => array( // control label text of each nested object 'contains' => 'inner_object', // nested shortcode name ![]() events – array – it includes parameters which describe the object behavior while editing.You would need to use Javascript to do this. rules – array – it includes parameters for linking the controls to nested objects. HTML and CSS are used to describe a static representation of content - there is no way dynamically hide/show content using HTML/CSS.items – array – it includes control settings to manage the nested objects. Ive got this piece of CSS/HTML code that works good on jsfiddle and when I do a test.contains – string – id of nested object.If you want to add a complex shortcode like in the example below you can set it within MotoPress WordPress Visual Builder element list.Ĭontent1Ĭontent2Ĭontent3
0 Comments
Leave a Reply. |