A web style sheet is a form of separation of presentation and content for web design in which the markup (i.e., HTML or XHTML) of a webpage contains the page's semantic content and structure, but does not define its visual layout (style). Instead, the style is defined in an external style sheet file ...

learn more… | top users | synonyms

0
votes
2answers
18 views

Child Theme Not Overriding Parent Theme

I know this question has been asked many times. I even spent the entire day yesterday getting things to work but to no avail. I am pretty sure I am missing out on something small//silly but I am ...
0
votes
0answers
10 views

Add custom meta to file header in theme's style.css, then retrieve it.

inside a theme's style.css there's the header meta data: /* Theme Name: Twenty Thirteen Theme URI: http://wordpress.org/themes/twentythirteen Author: the WordPress team Author URI: http://wordpress....
0
votes
1answer
24 views

How to get child style.css to load last rather than second behind parent style.css?

My parent style.css is loading first, followed by my child style.css then the numerous stylesheets from the parent theme load third and so on and so forth. The head currently looks like this: <...
2
votes
0answers
22 views

Change Theme from Plugin based on query_vars

I'm working from about 4 months on developing a Plugin. This plugin make in a page an entire app, using the powerful of Wordpress. So, I've decided to create a serires of rewrite rules using command ...
1
vote
1answer
39 views

How to add extra attribute to stylesheet link?

Following Keith Clarks advice, i'd like to load my fonts asynchronously. I try to achieve that by adding: wp_enqueue_style( 'font-awesome', URI . '/fonts/font-awesome/css/font-awesome.min.css' ); ...
1
vote
1answer
35 views

How do add a the style-mobile css from the main theme to the child theme?

I've only found one post on this and the OP asked for clarification, but didn't get any: How to enqueue both style.css and style-mobile.css in child theme I'm using a pretty standard theme and have ...
0
votes
1answer
21 views

How to create an optionally available stylesheet for visually impared users?

I have a WP website that I would like to make easily accessible for visually impaired users. I don't want to modify the default stylesheet, nor I would like to use any plugins, so I am looking for a ...
1
vote
0answers
39 views

Following Web Performance Optimization techniques to output static and dynamic css

I have always felt the way styles are handled in WordPress is not optimal regarding the web performance optimization (WPO) techniques that are related to css. From a theme developer point of view, ...
0
votes
1answer
16 views

Make a plugin page out of influence of the theme's style

I have to make several change to my style to be with what i want, when i export a project to a wordpress plugins : Based on this : When including it into a plugin, i finally got this : This ...
0
votes
0answers
39 views

How to use get_stylesheet_directory_uri() in an array?

I create an social icon placeholder on the WordPress theme. I am using this code: "url" => get_stylesheet_directory_uri() . "/images/rss.png" to placed a default icon. I's work on old WP ...
0
votes
1answer
35 views

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

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:...
0
votes
1answer
59 views

WP adds long version query strings to CSS and JS files

I noticed WP adding long query strings to my CSS and JS files. Not just the version parameter from wp_enqueue_style from a Theme or something, no something fishy going on. I even switched to the 2016 ...
0
votes
1answer
34 views

What is the correct workflow for modifying child themes?

I am asking the following because I am fairly new to WordPress. I want to change the fontsize for post titles. This is what I do: I inspect a post title in Chrome using devtools, and find out the ...
0
votes
2answers
144 views

Give priority to child theme stylesheet

I've created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead. ...
-1
votes
1answer
56 views

What is the difference between style.css and index.php

I have looked through internet but I have failed to understand what is each these files are for.
0
votes
3answers
75 views

Changes in enqueued / registered stylesheet paths not updating—why?

I'm attempting to modify a WordPress theme so that it appends a version number to a particular stylesheet. This is all done on a local development machine, tested on a staging server, too, for good ...
0
votes
1answer
22 views

widget: input the px value from user and use it as inline style in widget function

I am trying to dynamically add margin-bottom property to my widget. For example, I am inputting the value "50px" from my widget and want to use this value to adjust margin-bottom property for the ...
0
votes
1answer
153 views

Completely reload style.css

I have inherited a site, and I'm trying to add new styles to the style.css Things I have tried that have NOT worked Reload browser cache delete WP Super Cache cache Disabled WP Super Cache plugin ...
-2
votes
1answer
56 views

stylesheet not loading for mobile version for any theme

I am developing a blog theme . When I browsed my theme on mobile i saw that there was no any styling. Then I switched theme to 'twenty fifteen'. Again there was not any styling.
0
votes
1answer
38 views

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....
3
votes
2answers
496 views

How to remove all styles for certain page template?

I know how to create child themes and page templates. I have a child theme of Salient called Salient-Child, and I have a page template called blankPage.php. For all pages that use this template, I ...
0
votes
1answer
41 views

Theme stylesheet not called properly on cloned website

After cloning a WP website locally everything works fine except main theme stylesheet is called is the following way: http://127.0.0.1/my_site/wp-content/themes/mycollege/?ver=3 instead of the ...
1
vote
1answer
59 views

Which is the best way to incorporate custom fonts?

I believe there are 3 valid methods of incorporating custom fonts: put a link to them in the header enqueue them in functions.php add them with @font-face in style.css Which is the best way to do ...
1
vote
2answers
49 views

Is there a default style.css

I'm handcrafting an extremely simple wordpress site, with minimum features, functions, templates etc. Is there a default style.css that I can use as starter? I have found this one but it is quite old -...
0
votes
1answer
53 views

Is there any good reason for two CSS files to @import each other?

I'm working on some critical style revisions for a client's WordPress site that was designed by another team. The CSS seems to be a tangled mess. One of the idiosyncrasies I've found is that the ...
0
votes
1answer
149 views

How to style options page in dashboard?

working with a child-theme, adding a custom options page to dashboard in which admin can save details about the site. Using this code in the child-theme functions.php to create the options page: ...
0
votes
0answers
63 views

Loading a different theme stylesheet for mobile

So I'm trying to have a different theme stylesheet load for mobile devices. This isn't really for styling, but for the combining of style sheets; I don't need all of the plugins on the mobile version. ...
0
votes
0answers
89 views

Stylesheet not loading

I have started on a plugin that shows some basic information of registered users. In order to control layout I want to have a separated CSS file (in plugin-name/css/style.css). However, when I enqueue ...
1
vote
1answer
60 views

Do I need to register my own created .js and .css files

I have several .js and .css files which I created for my theme. (not a child theme) Styles and scripts are at the moment hard-coded in the head and work as wished. Now I read a lot about register and ...
0
votes
0answers
69 views

Editor Styles Not Working

I am trying to re-style the TinyMCE editor here: http://dannymcgee.net/duskguard/forums/forum/general-discussion/ I've tried both of these in my functions.php: add_editor_style(); or ...
0
votes
0answers
51 views

How do you load a stylesheet for just the page that contains a shortcode?

I am working on developing a pluginI've been really struggling with this task, mostly because I've seen so many different ways to do almost what I want, but not exactly what I want. So I've tried ...
1
vote
2answers
1k views

Overwrite style.css styles from index.php style

I'm trying to change the look of my website but while doing that, facing some problems. Now, different classes and id's in style.css apply to all pages on my theme. I want to overwrite those styles ...
-1
votes
1answer
41 views

Installing non-standard fonts [closed]

I've followed instructions online to install non-standard fonts, uploading the font.ttf file to my server and adding this to the styles.css in my child theme: @font-face { font-family: UtopiaStd; ...
1
vote
1answer
122 views

Enqueue and Dequeue from admin bar nodes

I developed a few nodes under my custom parent node on admin bar. While navigating on frontend and clicking on one node I'd like to enqueue some css file. The url should remain. While navigating on ...
0
votes
1answer
533 views

Child theme style.css isn't overwriting parent style.css

I am using the Optimizer theme and created a child theme to make 2 changes in the style.css. The .single_wrap adjustment works fine, but the page_head is being ignored. When I use Inspect Element on ...
5
votes
1answer
987 views

How to use wp_dequeue_style() for style enqueued in WP_Widget class

I've got a plugin that makes a widget that enqueues some front-end CSS to style the widdget. I call wp_enqueue_style from the public widget() method in the extended WP_Widget class: <?php class ...
0
votes
0answers
195 views

Adding css class to post and styling it

I am new to wordpress development, and I am using the Customizr Theme I am trying to add a CSS class into my wordpress post in order to incorporate styles into it but I am having difficulty finding ...
1
vote
2answers
153 views

plugin style conflicts, how to override? [closed]

My client is using these two plugins: - All in One Buttons - Genesis Design Palette If you check this example page http://bsc.mustor.com/testing-buttons/ you will see that time text on the button is ...
0
votes
1answer
158 views

Enqueuing a stylesheet and ensuring it's loaded before (not after) the theme's stylesheet

In wp_enqueue_style()'s doc I see the third parameter is for stylesheets to be loaded before the one called by the function. But is it possible to do the contrary, meaning to instruct WP to load a ...
1
vote
1answer
614 views

Cannot edit style.css from admin panel, because the template is looking for style.min.css

I am trying to edit the style.css file for a Wordpress theme, however the changes I make (via admin or ftp) are not reflected on the site because that is using style.min.css. It is very cumbersome ...
1
vote
1answer
171 views

Stylesheet comment header: Which header names are mandatory? [duplicate]

I've always used the same comment header names in my style.css document. Theme Name, Theme URI, Author etc. For example: /* Theme Name: Example Theme URI: http://example.com Author: John Doe Author ...
0
votes
2answers
39 views

CSS not applying in admin

I am using SASS and grunt to merge all my seperate .scss files into a single minified css file, which is loaded using wp_enqueue_style. Works fine across the site but not in the admin area. Is there ...
16
votes
3answers
61k views

Versioning @import of parent theme's style.css

Context I built a child theme based on Twenty Thirteen which works quite well. After updating the parent theme to version 1.3, I noticed strange behavior with the styling which was caused by a cached ...
2
votes
2answers
4k views

wp_head() not inserting the default stylesheet style.css

I have a custom theme with just a name in its style.css. I've activated it in admin which shows it just fine. In the index.php just <?php wp_head(); ?> and it doesn't output the line that is ...
1
vote
4answers
4k views

Can I add styles to footer with $wp_styles->add_data?

I'm working on a script to easily move js and css scripts to the footer using the add_data function in $wp_scripts and $wp_styles. I know for scripts that if the group is greater than 0 the script ...
0
votes
1answer
29 views

Style Switching

Any tips or tricks on how to get a website to show a different stylesheet when you click on a menu item? What I want is one link to load a green css style and the other links keep the default style ...
0
votes
1answer
101 views

Is wp_deregister_script the best way to deal with unneeded plugins in a page?

I use some "heavy duty" plugging, like syntaxhighlighter, GD star rating etc. i create a de-register.php file which i use to deregister scripts and styles whenever they are not used. Example: ...
0
votes
1answer
86 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
4
votes
2answers
93 views

How to edit an existing WordPress theme? [closed]

I've been hired to modify/update/change an existing WordPress theme. The site is already live, and I'm wondering how to work on the theme locally first.
0
votes
1answer
878 views

How to load css files in a specific order

I'm wondering if someone can help me with this. The theme I am working on has a custom theme options page where you can select various colors for the website. The problem is that the stylesheet it ...