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

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
31 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 ...
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
399 views

Multiple search template with separate stylesheets

I'm building a site which needs to have two search bars and two search results templates. One of the search bars is for regular posts, and the other is for a custom post type. I need the two search ...
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
1answer
469 views

how to put widget in specific position of under header?

I am currently building my first wordpress website and it is a lot of fun to do! I have 1 problem which i am unable to fix: i want to have 2 widgets in the underheader, i can simply put them in there ...
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
486 views

Sale price/original price styling issues

When there is a sale on a product, I'm trying to line-through the original price so it's clear what the actual price of the product is. However, there's no css class associated with either the sale ...
0
votes
1answer
28 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 ...
19
votes
2answers
42k views

adding custom stylesheet to wp-admin

im having troubles getting my custom stylesheet work on WP-ADMIN area. plugins_url('style.css', __FILE__) ); do i have to create folder in my plugins named css or do i just copy my .css to the wp-...
1
vote
3answers
17k 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. ...
0
votes
0answers
65 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
755 views

How do I make a child theme's style.css load after plugin css?

A client website is using Ultimate Visual Composer Addons plugin, which load its CSS file after the parent and child theme stylesheets. How do I load the child theme stylesheet after the Ultimate ...
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
1answer
2k views

How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)

As per the title, how do I change/remove styling (which is a white top border) on the main menu for both the active page and on hovering a menu item? I am using the Avada child theme and started out ...
9
votes
6answers
14k views

Attributing a version number to a child theme's main stylesheet

In header.php, I like to attribute a version number to the stylesheet so that the browser gets forced to refresh it. But when working with a child theme, its stylesheet is not explicitely called, ...
0
votes
2answers
294 views

My blog suddenly can't find my stylesheet?

I created a custom theme awhile back, and everything has worked fine up until now. All of a sudden, my theme was reverted back to the default twenty eleven theme because apparently my custom theme is ...
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:       ...
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
47 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
416 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 ...
4
votes
2answers
3k 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' ); ...
0
votes
1answer
36 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, ...
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
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. ...
0
votes
1answer
91 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 ...
4
votes
6answers
8k 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 ...
2
votes
1answer
42 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
91 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
321 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 ...
7
votes
6answers
37k views

how to add version of style.css in wordpress

How to add version of style.css in WordPress like below i can do in Joomla. <link rel="stylesheet" href="/templates/example/css/style.css?v=1.2"> i know that the style.css will load ...
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
117 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
3answers
156 views

wordpress doesnt add media.css file

I recognized that site is not responsive and media.css file is not working, i inspected with dev tools what kind of styles are included in header and i found that there is min version/css/media.min....
4
votes
3answers
19k views

Hook 'wp_enqueue_scripts' priority has no effect

In a theme I am working there are up to 3 Stylesheets. I am using the hook 'wp_enqueue_scripts'. The order of the stylesheets is important for overwriting styles. I have a code like this: add_action('...
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, ...
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 ...
0
votes
1answer
952 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 ...
1
vote
2answers
1k views

Child Style.css not overriding parent theme style located in assets/css/main.css

I know this question has been asked before, and I've already referenced the following questions here: Child Theme Not Overriding Parent Theme some things in child theme css not overriding parent ...
6
votes
3answers
14k views

Why is the Child Theme Stylesheet Not Loading?

I'm using the HashOne theme and created a child theme in order to make various color changes to our website. However, the changes I've made to the child theme stylesheet are only taking place in the ...
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
870 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 ...