-
AuthorPosts
-
July 29, 2015 at 11:24 am #480127
Hello,
after several research, i found this Post
I try to basically doing the same thing : hide button in the admin bar when you write a page.
This code works perfectly for hidding the “button” shortcode.
add_action( 'admin_print_styles', 'enfold_customization_admin' ); function enfold_customization_admin() { echo '<style type = "text/css">'; echo '#mceu_63 { display: none; }'; echo 'a[href="#avia_sc_button"] { display: none; }'; echo '</style>'; }
But I can’t find out where is the list of unique ID. There is one ?
When i add this, nothing else hidding.
add_action( 'admin_print_styles', 'enfold_customization_admin' ); function enfold_customization_admin() { echo '<style type = "text/css">'; echo '#mceu_63 { display: none; }'; echo '#mceu_64 { display: none; }'; echo 'a[href="#avia_sc_button"] { display: none; }'; echo 'a[href="#shortcode_insert_button"] { display: none; }'; echo '</style>'; }
Where i can find the unique ID list and hidde other button in the admin bar.
Thx for your help.
Regards,
Loïc- This topic was modified 9 years, 2 months ago by Elliott.
July 30, 2015 at 6:57 pm #480851Hey leplusweb!
You’ll just need to right click your page source and view the IDs that way. Which element are you trying to remove?
Regards,
ElliottJuly 31, 2015 at 11:12 am #481246Hi,
When I Inspect the source of a button (for example the Headline Rotator). I don’t find the ID.
I have this code
<a data-avia-tooltip="Creates a text rotator for dynamic headings" data-dragdrop-level="3" href="#avia_sc_headline_rotator" class="shortcode_insert_button avia-target-insert ui-draggable ui-draggable-handle"><img src="http://www.website.com/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/images/sc-heading.png" alt="Headline Rotator"><span>Headline Rotator</span></a>
Where can I find the ID for this ?
Thx for your help.
Regards,
Loïc- This reply was modified 9 years, 3 months ago by leplusweb.
August 3, 2015 at 2:50 pm #482120Hi!
For the headline rotator you can use this.
a[href="#avia_sc_headline_rotator"] { display: none; }
Best regards,
ElliottAugust 4, 2015 at 10:23 am #482598Simply that ?
Ok I think there is an unique ID for each button. That’s why in my first code i add :
echo '#mceu_63 { display: none; }'; echo '#mceu_64 { display: none; }';
Thx for your help.
Regards,
LoïcAugust 4, 2015 at 2:40 pm #482704 -
AuthorPosts
- You must be logged in to reply to this topic.