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.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

Enqueue Style Function Not Loading

I've been reading Wordpress Theme Developer Handbook to learn how things work and try to practice according to what's written in there. I've created my index.php, style.css, function.php and header ...
0
votes
1answer
466 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
0answers
45 views

Is it possible to link an external stylesheet, exclusively within a specific single post template?

SOLUTION Big shoutout to the wonderful SallyM, who answered this very succinctly in the comments of this post. If it helps anybody, here's the code that I used. Note: Replace the //CONTENT// with ...
0
votes
1answer
504 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
1answer
12 views

How do I make sure the gutenberg block CSS is not disrupted by generic styles?

I am working with a pre-existing theme. On the site in question, the style sets rules for P tags. These rules are applied in preference to the class styles for P tags used in certain blocks. (With the ...
0
votes
0answers
22 views

How Can I Disable Wordpress Theme Self-Update?

Q:I have a wordpress theme and i want to make some changes on the styles and css files but every time I make changes , after refreshing the page the custom styles are gone. Even I delete the theme ...
0
votes
1answer
517 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 ...
1
vote
1answer
26 views

How do I create a new WP admin color scheme?

I followed this guide, but idk if it doesnt work for WP 5.0+ or if im doing something wrong. I added this to my functions.php and the css file is a copy of the Light Scheme. function ...
0
votes
1answer
27 views

Add styles to wordpress admin on the Page List

Is it possible to add the page slug as a class to the list of pages in Wordpress admin? The reason is, I want to make programmatically hide pages in the admin if an option page exist for that page. ...
4
votes
7answers
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 ...
0
votes
1answer
817 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
10k 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
0answers
18 views

different stylesheets for different languages

I want to translate an LTR wordpress theme to RTL. The theme uses bootstrap and includes bootstrap.min.css. But for RTL mode I need to include a different bootstrap css file named bootstrap-rtl.min....
0
votes
0answers
51 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
25 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
21 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
400 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
33 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
12 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
20 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
41 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 ...
20
votes
2answers
44k 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
19k 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
110 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
67 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
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
15k 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
297 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
37 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:       ...
8
votes
2answers
2k 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
83 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 ...
2
votes
1answer
521 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
8 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
4k 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
94 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
29 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
22 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
240 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
50 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
137 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
1answer
377 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 ...
8
votes
6answers
39k 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
165 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
169 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
20k 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
66 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
5k 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
1k 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 ...