Articles of styles

Is there a way to add additional CSS styles to the styles css file dynamically?

I would like to add additional styles to the styles.css file before it is sent to the client. Is this possible? Currently styles.css contains : /* Theme Name: My Theme Theme URI: https://example.com/themes/vanilla/ … */ … html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; font-size: 62.5%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } // MY […]

Set a link in child theme style.css to jump to #main

I have created a 2013 child theme by creating these 2 files – /wp-content/themes/twentythirteen-child/style.css: @import url(“../twentythirteen/style.css”); .site-header .home-link { min-height: 800px; } /wp-content/themes/twentythirteen-child/functions.php: <?php function my_custom_header_setup() { $args = array(‘height’ => 800); add_theme_support(‘custom-header’, $args); } add_action(‘after_setup_theme’, ‘my_custom_header_setup’); ?> Now the website has a large image at the top and looks as I wanted it. However, […]

Register and enqueue style.css custom theme

I’m trying to create a custom theme for wordpress, I created all these file: style.css index.php function.php footer.php header.php page.php single.php front-page.php This is the code of my style.css: /* Theme name: La Pizzeria Theme URI: http://www.matteoschiatti.it Author: Matteo Schiatti Author URI: http://www.matteoschiatti.it Description: Theme for Restaurants Version: 1.0 License: GNU General Public License v2 […]

Visual Editor: Paragraph styles appear to one admin but not to others

The first admin of my site has a full Visual Editor with style sheets. I create new users who are admins (their profile page has same settings with original admin) but they cannot set the style of paragrpaphs (no drop-down list with styles). Any ideas? Thanks.

Styling Previous/Next Pages differently from Index

A friend of mine pointed me towards using child elements to style my index page so that I could have one loop and several different visual styles (a featured post, a smaller sub-featured post, and several smaller thumbnails). This is very helpful in that I can add posts and the existing posts will just flow […]

How to add style to a string of text throughout WordPress website?

I am building a site for a friend, the site has launched, now he tells me he wants his site name to appear green everywhere it appears on the website. Immediately, I thought of the plugin SEO Smart Links, which automatically links a string of text. Is there anything like this for applying styles or […]

Using post_class to style posts indivdually

I have a homepage on which I want to display the latest post different from the other posts. I haven’t used post_class and I am not sure how to. Would I be able to achieve what I want using post_class?

How to change the default class for the widget title?

I would like to change the default class of the widget title. Currently it is h2 and I would like it to be h3. I have seen there is the option of customizing css so that h2 looks like h3. #sidebar h2 { font-size: 24px; } But then, this may cause a problem if I […]

How do I use inline styling with WordPress?

I would like to be able to add a background image to the header area on each inside page of this site. On a static page I would do something like this: <header class=”entry-header” style=”background: url(‘/images/bg_the-firm.jpg’)no-repeat left top;”> However, any attempts at inline styling are stripped out by WordPress. I can add a background image […]

Can not find css directory in header

I am beginner in wordpress. I am trying to give path of my css file in header.php and am I trying this, but I can not link my css file in my header.php Is there any problem in my code. I can not find my css file in page source. <link rel=”stylesheet” id=”jquery-ui-theme-css” href=”<?php echo […]