Style WP_Debug?

You could add following code (if not done already) in wp-config.php (please make a backup first of this file): define(‘WP_DEBUG’, true); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false ); This way debug is activated but the results (if have errors/notices) will not be shown but will be saved in a logfile which you can find … Read more

How do I apply/target CSS to a specific user role or roles?

If you’re looking for a way to add the roles into the body class, like here: <body class=” … role-administrator role-jedi role-knight … “> then you could try the following: add_filter( ‘body_class’, function( $classes ) { if( is_user_logged_in() ) { $classes = array_merge( (array) $classes, array_map( function( $class ) { return ‘role-‘ . $class; // … Read more

different style sheet for just one page template

The preferred way is to use add_action( ‘wp_enqueue_scripts’, ‘themeslug_enqueue_style’ ); within your child theme functions.php file or directly in your referral.php template page. Either way, it’s by using add_action and not by echoing into the <link> tag. Registering your style is also a recommended practice. The one benefit I would see in your case is … Read more

Can’t change the style of a submit input type? [closed]

The fault is from the following code, change the colors or remove it. .xoouserultra-wrap a.xoouserultra-button:hover, input[type=submit].xoouserultra-button:hover, input[type=submit].xoouserultra-button:focus, input[type=button].xoouserultra-button:hover, input[type=button].xoouserultra-button:focus, .xoouserultra-wrap a.xoouserultra-button:active, input[type=submit].xoouserultra-button:active, input[type=submit].xoouserultra-button:active, input[type=button].xoouserultra-button:active, input[type=button].xoouserultra-button:active { border: 1px solid #1278b2; background-color: #1278b2; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#1278b2), to(#1391da)); background-image: -webkit-linear-gradient(top, #1278b2, #1391da); background-image: -moz-linear-gradient(top, #1278b2, #1391da); background-image: -ms-linear-gradient(top, #1278b2, #1391da); background-image: -o-linear-gradient(top, #1278b2, … Read more