How to style text in WordPress
In the latest version of WordPress, there a text color option in the default WYSIWYG, which is TinyMCE. Look for this option: Custom styling for tables is not supported by default in WordPress.
In the latest version of WordPress, there a text color option in the default WYSIWYG, which is TinyMCE. Look for this option: Custom styling for tables is not supported by default in WordPress.
Use the function body_class() in your templates: <body <?php body_class(); ?>> This creates extra classes on the body element. Then filter its values in your functions.php: add_filter( ‘body_class’, function( Array $classes ) { if ( $GLOBALS[ ‘isBoxedLayout’ ] ) $classes[] = ‘isBoxedLayout’; return $classes; }); Now you can move all CSS declarations for that to … Read more
Good news, I seem to have fixed the code. I cleaned up the code for #colophon. I changed it from this: #colophon { background:url(http://kjel.ca/wp-content/uploads/2014/12/footer-img.jpeg) repeat-x bottom center; height:80%; width:100%; position:absolute; margin:0; padding:0; bottom:0; min-width:100%; min-height:1%; } To this: #colophon { background: url(“http://kjel.ca/wp-content/uploads/2014/12/footer-img-2.jpeg”) repeat-x scroll center bottom transparent; height: 100%; position: absolute; width: 100%; background-size: 100% … Read more
I’ve found the solution to the problem myself. for anyone out there, surround your header call with the conditional ‘is_product_category( ‘day’ )’. you can read more about it here: http://docs.woothemes.com/document/conditional-tags/
…there’s no way to include the style in WordPress posts, at all? You need to add the style tag to the list of allowed post tags, and also ensure TinyMCE recognises it in the editor: function wpse_180472_wp_kses_allowed_html( $tags, $context ) { if ( $context === ‘post’ ) $tags[‘style’] = array(); return $tags; } add_filter( ‘wp_kses_allowed_html’, … Read more
You can not delete or ignore default styling in a child theme. You must override the declaration. .content-ver-sep { background: transparent !important; border-bottom: none !important; clear: both; height: 1px; } this should do the trick –
Looks like the source of my problem is a function called admin_bar_bumpin wp-includes>admin-bar.php. It’s for the admin bar and when I log out it goes away so it wasn’t effecting the style of the site for logged out users. I was able to filter it out in my functions.php file. That’s actually no better than … Read more
There are many approaches to this. This is because the position: absolute on the sidebar-container is making it overlap over the footer. Try this CSS to override. This is a static solution: body.single .hentry // Selects the single posts { min-height: 2000px; // Set this according to the height of the sidebar } This one … Read more
Without being rude, it will probably cost more to fix what you break instead of asking them in the first place! – however, you can’t learn until you break!. If I were you and you are interested in trying to play around with CSS/HTML – then you could always install WordPress locally on your Mac/PC, … Read more
Yes, that’s possible! For the default homepage, you can use this: body.home { background-color: #ff0000; } For a specific blog post, you can use this where 5 is its post ID: body.postid-5 { background-color: #00ff00; } And this is for a specific page and it’s the same where 5 is the page ID: body.page-id-5 { … Read more