Archived topic
Where are gone the bottons?
6 replies · Started by Francisco on February 8, 2017
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.es
Hi Francisco,
How were you adding the buttons before?
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
Francisco
Sections 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.
In 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).
Thank you.
I´ll try.
Regards
No problem :)