How to add a custom CSS class to ALL links
It would be more efficient to add a container with a certain class name around content that has been created with the HTML tab. That way you’re avoiding the code getting bulky.
It would be more efficient to add a container with a certain class name around content that has been created with the HTML tab. That way you’re avoiding the code getting bulky.
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
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
Depending on which device you want to target, you’ll need to use a media query, you can read more about those here: CssTrick: @media only screen and (max-width : 320px) { #content { display: flex; /* Optional, if you want the DIVs 100% width: */ flex-direction: column; } #content > .wooside { order: 1; } … Read more
The problem is that you are using the_excerpt(). This function prints out the excerpt immediately, it doesn’t return a string. From the core: /** * Display the post excerpt. * * @since 0.71 */ function the_excerpt() { /** * Filters the displayed post excerpt. * * @since 0.71 * * @see get_the_excerpt() * * @param … Read more
wp_enqueue_style( $parent_style, get_stylesheet_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’) ); Look closer, specifically at the URLs you passed to enqueue style: parent: get_stylesheet_directory_uri() . ‘/style.css’ child: get_stylesheet_directory_uri() . ‘/style.css’ They’re identical, they’re the same file, that’s the problem. Your child themes stylesheet isn’t overriding the parent, because the parent … Read more
It looks like you might be confusing the :active CSS pseudo class and an actual .active class. The pseudo class represents an element that is being activated by the user. It is not the active page. If you want to use the active class on the current page, you can use the nav_menu_css_class filter to … Read more
If you go into your Admin section, under Appearance > Edit CSS, you will be able to override the CSS of the theme. In order to find out what the class is, you might want to Inspect the control with Google Chrome’s Developer Tools.
cant you just give that link a class? why touch your template files?.. anyhow i see no reason why you can’t to that… the css should work.. The only change i would do when editing a template file is using php to get the folder url (where you image is) like so: <style type=”text/css”> .specialLink … Read more
It is in your stylesheet .entry-title { font-size: 33px; font-weight: 300; line-height: 1.0909090909; margin-bottom: 12px; margin: 0 0 12px 0; text-transform: uppercase; } You need to remove text-transform: uppercase;