Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [stylesheet]

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 using a style sheet language such as CSS or XSLT.

0
votes
0answers
26 views

Remove style id inline CSS in WordPress

When I fix CSS error in my site I can't find these errors. How can I find this CSS in my site? <style id='onetone-main-inline-css' type='text/css'> When I check it show many errors in CSS so ...
-1
votes
0answers
15 views

Stylesheets being served from different url's

I have just checked my site on gtmetrix and all seems good other than the first tab "Serve resources from a consistent URL" It seems that there are 2 versions of th e same script being served, I ...
0
votes
0answers
24 views

Theme CSS missing completely

Run into a bit of an issue with our WordPress site, and can't for the life of me work out why it's not applying the CSS to the site! Our website is https://beecityliving.co.uk/ and we're using ...
0
votes
1answer
18 views

Completely isolate a plugin view so it doesn't load the theme

We're making a WordPress plugin that generates an iframe with a shortcode, and that iframe that should work and display the same no matter what site, page or theme it's used on. The view is located at ...
0
votes
1answer
19 views

Wordpress 404 on style.css but not on all pages

I have noticed an issue when running a site audit on all of my websites using SEMrush I picked up the error: issues with broken internal JavaScript and CSS files Examples https://stage....
0
votes
1answer
12 views

Why child theme stylesheet takes long time to update?

I don't face this problem with every site I work on! But sometimes, it happen. The problem whenever I add some style to the stylesheet of child theme. It doesn't show the effects immediately, they do ...
0
votes
1answer
10 views

Can't Workout Dependency of Stylesheets

I have enqueued a new stylesheet rk.css Ultimately I want it to load last after all other plugin css etc to override any css. I have the following in my functions.php of my child theme: add_action( '...
0
votes
2answers
19 views

Trying to link to a custom css file in a new folder

I'm trying to link to a custom css file in a new folder of a small plugin I'm trying to make. I can't seem to get it to work. This is the line I have echo '<link rel="stylesheet" href="' . ...
0
votes
1answer
27 views

Setting Up Child Theme To Take Priority

I'm trying to setup my child theme style sheet with a premium theme I have bought but I'm having a nightmare trying to get to work properly and efficiently. I have downloaded the theme's child theme ...
0
votes
0answers
64 views

Dynamic CSS styles with ACF

I'm playing around with ACF to try to create my own rudimentary page-builder. One thing I'm trying to accomplish is using it with Gutenberg to create somewhat of a WYSIWYG. I'm not sure the best ...
0
votes
1answer
32 views

How to disable all css from the theme for a specific post type page

I´m creating a plugin and I need, when the admin is logged in and a single-{post-type-slug}.php does not exist, the page https://my-site/post-type-slug/my-admin-page.php can be displayed without ...
0
votes
1answer
29 views

How can I fix my theme header for my CSS stylesheet?

/*  Theme Name:     Its Bullish  Theme URI:      https://www.itsbullish.com  Description:    Its Bullish  Author:         Bullish Advertising  Author URI:     https://itsbullish.com  Template:       ...
0
votes
1answer
46 views

Homepage not loading correctly, but then loads when refreshing

When going to our homepage (www.whiteskitchen.co.uk). We seem to have lost the styling on the homepage. I checked the source code and it’s not fully loading the page. When you refresh the page or ...
3
votes
1answer
410 views

If I dequeue Gutenberg Stylesheet will that have any effect on WordPress 5.0.1?

In updating to Wordpress 5.0.1 I noticed when examining my Sources from Chrome's DevTools that a new file and directory were created, a stylesheet named style.min.css in a dist directory: /wp-...
0
votes
0answers
6 views

How to put the menu item in one line

When I added another item to the menu, it showed up in the second line. On the left there is still a lot of space so I would like to put it in one line. When away in the browser at 90%, then ...
0
votes
1answer
35 views

Edit style.css via theme customizer

Till now in my Wordpress themes, I was implementing few necessary styling options in theme customizer which would edit the CSS and override it by outputting that CSS to head inside <style> tags, ...
7
votes
2answers
1k views

How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)

I am upgrading Font Awesome 4 to version 5 which introduces both integrity and crossorigin attributes to the <link rel="stylesheet"> markup. Currently, I am using: wp_register_style('...
0
votes
1answer
19 views

Remove a Style Tag from WP Theme

Am relatively new to the world of websites/coding and not sure how to remove an HTML style tag from my wordpress theme. I need to remove the tag that's in bold - but I don't know where to find it. ...
1
vote
1answer
20 views

How to add styles set by user in the customizer

I want my theme to be very customizable, and so far i have provided the possibility to change text and link colors to the body, plus the background color which comes by default (I'm using the ...
0
votes
1answer
90 views

Stylesheet Enqueue Order and Best Practices

i would like to do the following: customize a theme to my likings for use on several sites and installations. so i can make "global" changes (via own plugin?) then i would like to have a site ...
2
votes
1answer
41 views

Dequeue theme stylesheets but keep widget styling on custom page template

Bit of an unusual one. I have created a plugin that will only display content on a custom page template. For this reason, I have dequeued all the theme styles via $wp_styles and loaded in the plugin ...
0
votes
0answers
90 views

Enqueuing multiple stylesheets with a child theme

I've successfully enqueued a parent stylesheet and child stylesheet. I'd like to enqueue a third - ultimately a style.php file, but a second-style.css would be a good start. It's not working for me ...
0
votes
0answers
6 views

AMP Issue with SVG Style

I am receiving an error when trying to convert a post to AMP using wordpress. The error can be replicated by following the below link: Google AMP Tester You should see the following from the above ...
0
votes
1answer
320 views

How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn't my child theme appearance match the parent?

I've read the Codex article on child themes, and numerous StackExchange Q&As, but I've not been able to get this figured out. The impact is that my child theme does not exhibit the same styling as ...
0
votes
0answers
15 views

Edit the stylesheet of a child theme

I'm using the free "responsive" theme, as a child theme How can I change the CSS stylesheet? As it not working by the usual way by using the editor Thanks!!
0
votes
3answers
115 views

What is the difference between the different ways of linking stylesheets

I'm only just learning WP theme development so this may be a very stupid question, but I have noticed there are different ways to link to the main stylesheet from the index.php: <?php bloginfo('...
0
votes
1answer
40 views

Insert stylesheet into WordPress header?

I just want to add one extra line (a third-party font stylesheet) to the header of my blog. I have a child theme set up, but at the moment it only has a custom stylesheet, style.css. Very simply, ...
0
votes
1answer
941 views

How do I override WordPress plugin css [closed]

I recently tried to add custom css to one of my stylesheets for my theme to customize a WPBakery Page Builder button element. But I saw that the plugin(WPBarkey Page Builder) overrides the css I set ...
-2
votes
2answers
51 views

How to create my own style.css file in an wordpress child-theme

I am working in the theme called Understrap. I work in the child-theme. The theme allready has a style.css and functions.php. I want to create my own style.css file and overwrite that style.css ...
0
votes
1answer
243 views

I can't add CSS with functions.php [SOLVED]

I'm relatively new to creating a theme with WordPress, and I've been adding all the stylesheets (main and for each page) with the old echo get_stylesheet_uri();. But I find out that this isn't the ...
0
votes
1answer
260 views

The CSS (style.css) Of My Custom Theme Is Not Being Applied At All

I am creating my own theme Wordpress, however the CSS I wrote for the theme design is not being applied at all. It's saved in style.css and I have applied the following in my functions.php file: <...
1
vote
1answer
54 views

How/where to add additional stylesheet to WP

I am rebuilding my website and want to use a font I purchased from MyFonts.com and need to add <link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css">, but I don't know where or ...
-1
votes
1answer
853 views

How can I dequeue a Plugin Stylesheet?

I am currently using a Plugin, which has created a Stylesheet within the following directory: /wp-content/uploads/plugin-name/css. I would like to remove this Plugin's Stylesheet, since it is being ...
1
vote
2answers
485 views

How to exclude certain code from style.css? [closed]

I have a code in my theme's stylesheet that looks like this. I would like for my code to not use the width property that is set in here. Deleting is not the option as that would be only temporary ...
0
votes
1answer
229 views

Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?

I am building a WordPress Theme, from the ground up. At present, I have placed a style.css file within the wp-content/themes/theme-name directory. The current information, within this file, is as ...
-2
votes
1answer
29 views

Can physically see CSS changes occur when refreshing page

My theme has some built-in options in customize to change things like base font weight and font type, but for font color I add a bit of css to the themes custom css option it also offers. I notice ...
0
votes
1answer
23 views

my custom css file downloads then it STOPS!

I’m watching an online course for WordPress development and at the beginning I attached the css file the exact like what the instructor did and tested it by adding some styles and it worked fine ...
0
votes
0answers
269 views

WordPress doesn’t load css, image and js files after moving local installation folder

I am running Wordpress on my local machine using WAMPServer. However, after moving the WordPress files from a folder called, wamp64/www/custom_theme/ to the wamp64/www folder, WP is still attempting ...
1
vote
0answers
47 views

Additional CSS - crashing with javascript-html minifier?

How can I load Additional CSS style manually in functions.php? This is how I load my css files and js files: function xxx_scripts() { // Load our CSS bundle. wp_enqueue_style('xxx-master-...
-3
votes
1answer
33 views

Adding padding above menu

I am not sure why but after I done some editing the menu now has no space from the type of the page. How do I create this ? http://croiativefilms.com
0
votes
2answers
31 views

How to prevent a style sheet to affect a header.php or footer.php?

I crated a footer.php and a corresponding customFooter.php. It looked great until I added header.php and customHeader.css. Now the 2 custom css files are overlaping. For example: some of the <img&...
0
votes
5answers
9k views

CSS stylesheet not loading

I'm brand new at theme development. My css stylesheet is not loading, and I'm not sure if the problem is in the functions.php, style.css, index.php, header.php, or footer.php file. I've added a div ...
0
votes
2answers
234 views

Proper Way to Load stylesheet on Condition

I am creating a child theme for my site and inside my functions.php I added a code to load a specific css file ONLY where it is the HOME page: // enqueue styles for child theme function ...
0
votes
2answers
530 views

Child theme not importing parent styles

I have created a child theme for my parent theme. Just added style.css and functions.php files in child theme. Original Theme Name: Verb Lite (Directory name verb-lite) I created new folder verb-...
1
vote
3answers
4k views

Hard Refresh Stylesheet [closed]

I am currently using a Mac computer and I cannot figure out how to refresh my website when I make css changes. I have tried Cmd +R, I have tried emptying the caches, but nothing seems to work. I ...
1
vote
3answers
286 views

Child theme problem

I'm trying to add a child theme on a website, I created the folder called mythemename-child, I created the style.css file with this information inside: /* Theme Name: Mizrahi-child Theme URI: ...
-1
votes
1answer
355 views

Root Sage theme styles are not working!

One of the websites that I'm working with has a custom build theme using Sage Roots. It works just fine on the live site and I was trying to setup it up in my localhost to work with it. For some ...
0
votes
1answer
215 views

Wordpress Child theme fails to override parent theme css

I've installed the Faxhion theme for a client, and I've successfully created a child theme. However I'm somehow not able to override the parent themes css. Similar questions such as this one & ...
0
votes
1answer
65 views

How to properly add my styles overriding current styles

I have a WP website: after reading docs everywhere, I made up a little, personal plugin that lets me display a particular app, made with VueJS, into a single Page. Now, the theme of this website is a ...
0
votes
1answer
115 views

How to stop wordpress from injecting hard-coded style into image attachments with captions

Every time I add a caption to a wordpress image, wordpress decides its going to insert a hard coded style="" into the attachment html which breaks my sidebar. All images without captions are inserted,...