-
AuthorPosts
-
August 28, 2015 at 5:23 pm #495011
Hello !
I add the following code to my function.php of my child theme :
add_action( 'admin_menu', 'enfold_customization_admin' ); function enfold_customization_admin() { echo '<style type = "text/css">'; echo 'a[href="#avia_sc_button_full"] { display: none; }'; echo '</style>'; }
This work perfectly, the button is Hide. But when i want to upload a picture I have this error “An error has occurred while sending . Please try again later.”
I don’t see where is the link between hidding button with CSS and uploading picture.
But it’s a fact when i delete the function enfold_customization_admin the upload works perfectly.
Perhaps I use the wrong Hook ?
Thx for your help
Regards
August 28, 2015 at 5:43 pm #495035Hey leplusweb!
Send us a WordPress login and we’ll take a look.
Cheers!
ElliottAugust 28, 2015 at 5:54 pm #495044Hey,
thx
Edit : I reupload the function.php with the code below
add_action( 'admin_menu', 'enfold_customization_admin' ); function enfold_customization_admin() { echo '<style type = "text/css">'; echo 'a[href="#avia_sc_button_full"] { display: none; }'; echo '</style>'; }
- This reply was modified 9 years, 3 months ago by leplusweb.
August 31, 2015 at 8:34 am #495637Hi!
Please set the user to administrator. We need to check the plugins and the theme editor panel.
Best regards,
IsmaelAugust 31, 2015 at 11:01 am #495708Hi,
You already are administrator.
Seems the plugin AAM block you.
August 31, 2015 at 4:30 pm #495948Hi!
I saw the error, not sure what’s causing it. I tried editing your comment in the functions.php file for testing but I didn’t see the other comments you had further down and it caused an error. Can you fix that real quick for us?
Best regards,
ElliottAugust 31, 2015 at 4:37 pm #495954Hi ! Not sure what you expect of me.
So i delete the comment which cause an error.
I have a save of this file and this is an offline website. You can edit the function.php the way you want.
- This reply was modified 9 years, 3 months ago by leplusweb.
September 1, 2015 at 2:56 pm #496417Hey!
Can you switch the login back to administrator?
Cheers!
ElliottSeptember 1, 2015 at 3:34 pm #496449Hey,
you already have my administror code above.
(The second one)
Cheers
- This reply was modified 9 years, 3 months ago by leplusweb.
September 2, 2015 at 3:23 pm #497177Hi!
I switched it to this.
add_action( 'admin_print_styles', 'enfold_customization_admin', 10 ); function enfold_customization_admin() { echo '<style type = "text/css">'; echo 'a[href="#avia_sc_button_full"] { display: none; }'; echo '</style>'; }
Does it work fine now?
Regards,
ElliottSeptember 2, 2015 at 3:35 pm #497186Hi, yeah that’s work fine ! The hook wasn’t the good one …
Thx a lot !
Regards
September 3, 2015 at 7:24 am #497513 -
AuthorPosts
- The topic ‘Hide Button in the Backend disturd image upload’ is closed to new replies.