nientepopcorn
Forum Replies Created
-
I want to redirect subscribers who for some reason are browsing backend dashboard or their backend profile page.
I update code as follow, I do not think it can interfere with wordfence plugin:
if ( is_admin() ) { if ( !current_user_can( 'manage_options' ) && ($_SERVER['REQUEST_URI'] == '/wp-admin/' || $_SERVER['REQUEST_URI'] == '/wp-admin/profile.php' || $_SERVER['REQUEST_URI'] == '/wp-admin/users.php?page=bp-profile-edit' || $_SERVER['REQUEST_URI'] == '/wp-admin/index.php')) { header("location:https://www.nientepopcorn.it/"); } }
I confirm that Now “Connecting back to this site” is OK
I don’t use a child theme. I use a custom theme.
I wrote a few lines of code to prevent non-administrator users from browsing in wp-admin.BEFORE
if ( is_admin() ) { if ( !current_user_can( 'manage_options' ) && $_SERVER['REQUEST_URI'] != '/wp-admin/admin-ajax.php'){ header("location:https://www.nientepopcorn.it/"); } }
AFTER
if ( is_admin() ) { if ( !current_user_can( 'manage_options' ) && ($_SERVER['REQUEST_URI'] == '/wp-admin/' || $_SERVER['REQUEST_URI'] == '/wp-admin/index.php')) { header("location:https://www.nientepopcorn.it/"); } }
Does it seem to make sense to you?
Now “Connecting back to this site” is OK
Hello wfyann,
the issue does not persist temporarily switch to a default theme (https://cl.ly/2t2o2w0e3v3K).
I don’t use “qTranslate”.do you have any suggestions? something about ajax ?
Thank you,
Andrea- This reply was modified 6 years, 9 months ago by nientepopcorn.
Forum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueEverything works fine.
Thank youForum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueYou’re very kind!
Thank youForum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueI understand that it is better to avoid “?20170101”
wp_enqueue_style( 'style-default_480', get_template_directory_uri() . '/css/default_480.css?20170701' );
Forum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueThank you
New option work fine.There is a new alert:
“Notice: Undefined variable: data in /var/www/nientepopcorn.it/htdocs/wp-content/plugins/fast-velocity-minify/inc/functions.php on line 730”
It was not there before.I see a big issue that was not there before: my main CSSs are not minimized, they are not considered.
My css are included by code like this:
wp_enqueue_style( 'style-default_480', get_template_directory_uri() . '/css/default_480.css' );
If you update your filehost you can see
83.96.204.141 https://www.nientepopcorn.it(I’m sorry for my english, :))
- This reply was modified 7 years, 4 months ago by nientepopcorn.
Forum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueIt does not change anything.
I should be able to exclude (from minification) the element with id “bp-legacy-css-inline-css” to fix.<style id='bp-legacy-css-inline-css' type='text/css'> #buddypress #header-cover-image{ height:225px; background-image:url(https://www.nientepopcorn.it/wp-content/uploads/buddypress/members/9/cover-image/fca966cd92fb9e1e4ae759dc00ad1547-bp-cover-image.jpg) ... ...
- This reply was modified 7 years, 4 months ago by nientepopcorn.
Forum: Plugins
In reply to: [Fast Velocity Minify] buddypress issueEach user has a “cover image”.
“Cover image” is a background image.
Cover image css rule is inside tag head.
Plugin copy “Cover image css rule” inside css minified, so each user has the same “cover image”.I was not able to solve the issue, and I have not received any response.
Codecanyon plugin manages “Multiple Images per Variation” and “zoom magnifier” together.I was not able to solve the issue.
Finally I’m using this
https://codecanyon.net/item/multiple-images-per-variation-for-woocommerce/2867927
removing both: YITH WooCommerce Zoom Magnifier and WooCommerce Additional Variation Images.