- This topic has 6 replies, 3 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
February 8, 2017 at 1:19 am #275866
Francisco
Good morning,
I´ve bought the theme. It´s great, but using sections some of my bottons have dissapeared from the editor. I have AD MEDIA, but not EASY AZON, AMAZON ASOCIATED LINK BUILDER, AÑADIR FORMULARIO… How can I bring them back to the editor when I use sections.
Thanks
Francisco
http://www.narrativabreve.com
http://www.grandeslibros.esGeneratePress 1.3.44GP Premium 1.2.94February 8, 2017 at 6:51 am #276066Leo
StaffCustomer SupportHi Francisco,
How were you adding the buttons before?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 8, 2017 at 8:41 am #276127Francisco
Hi, Leo
Here you can see before (without using sectiones): https://grandeslibros.es/wp-content/uploads/2017/02/before.jpg
Here you can see now (using sections of GeneratePress): https://grandeslibros.es/wp-content/uploads/2017/02/now.jpg
Thanks
FranciscoFebruary 8, 2017 at 9:50 am #276152Tom
Lead DeveloperLead DeveloperSections re-builds the editor from scratch, so those buttons need to be manually enabled from within Sections. Honestly, plugins shouldn’t add buttons up there, they should add their buttons directly into TinyMCE.
If you’d like to send me temporary admin login details (https://generatepress.com/contact/), I might be able to help with some code to display those buttons.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 8, 2017 at 11:58 pm #276392Tom
Lead DeveloperLead DeveloperIn your specific case, you can add this function:
add_action( 'admin_head','tu_enable_section_buttons' ); tu_enable_section_buttons() { ?> <style> #wp-generate-sections-editor-wrap .wp-media-buttons>a#add_gform, #wp-generate-sections-editor-wrap .wp-media-buttons>a.button.insert-easyazon.add_media { display: inline-block; } </style> <?php }
However, it won’t include the Amazon search, as that plugin inserts it using javascript and doesn’t target Sections (as it doesn’t know it exists).
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 10, 2017 at 1:32 pm #277120Francisco
Thank you.
I´ll try.
Regards
February 10, 2017 at 4:36 pm #277182Tom
Lead DeveloperLead DeveloperNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.