-
Author
-
October 19, 2013 at 23:24 #4668airsidworldParticipant
Hi,
How can I obtain an accordion with all chapters close or with the first one slightly open.
Sorry for my english. Thanks.October 20, 2013 at 15:08 #4730airsidworldParticipant?? You don’t know the Accordion shortcode :
[kleo_accordion] [kleo_accordion_item title=”Title 1″] Accordion Item Content 1 [/kleo_accordion_item] [kleo_accordion_item title=”Title 2″] Accordion Item Content 2 [/kleo_accordion_item] [/kleo_accordion]
October 20, 2013 at 15:19 #4731JohnDoeParticipantNow i do 😉 and i think u mean to let the first item be closed just like the others right? iv been looking for this to. But i don’t think it’s possible.
October 20, 2013 at 18:40 #4733airsidworldParticipantYes the first item to be closed or half open. It must be possible other theme allow to do it. Maybe an attribute to add in the shortcode’s php page or something like that.
Dear Admin could you please help ?October 21, 2013 at 14:26 #4760SQadminKeymasterHi,
I modified the shortcode to support the opened attribute. It can take as value the item number you want to be opened by default, or “none” value to have al closed.
Example:COPY CODE[kleo_accordion opened="none"] [kleo_accordion_item title="Title"] Accordion Item Content [/kleo_accordion_item] [kleo_accordion_item title="Title2 "] Accordion Item Content 2 [/kleo_accordion_item] [kleo_accordion_item title="Title 3"] Accordion Item Content 3 [/kleo_accordion_item] [/kleo_accordion] [kleo_accordion opened="2"] [kleo_accordion_item title="Title"] Accordion Item Content [/kleo_accordion_item] [kleo_accordion_item title="Title2 "] Accordion Item Content 2 [/kleo_accordion_item] [kleo_accordion_item title="Title 3"] Accordion Item Content 3 [/kleo_accordion_item] [/kleo_accordion]
Until next theme version update this files content:
wp-content/themes/sweetdate/assets/scripts/app.js with this: https://archived.seventhqueen.com/files/app.jswp-content/themes/sweetdate/framework/shortcodes/shortcodes.php with this: https://archived.seventhqueen.com/files/shortcodes.txt
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 21, 2013 at 15:16 #4764airsidworldParticipantThanks Sqadmin.
Should I copy asset and framework folders in the childtheme before udating app.js and shortcodes.php files ?October 22, 2013 at 01:34 #4850SQadminKeymasterNope. Copy them directly to the main theme since the next version will contain those changes and you won’t loose them.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 2, 2013 at 09:47 #5708JohnDoeParticipantHow can we edit the Accordions on the profile page? i want them to stay open by default, and can be closed when user wants to.
November 4, 2013 at 10:59 #5817SQadminKeymasterHi,
The file to edit is: wp-content/themes/sweetdate/members/single/profile/profile-loop.phpyou could make it a toggle instead of a accordion and replace accordion-title with toggle-title and accordion-content with toggle-content
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate Landing Page – HTML’ is closed to new topics and replies.