Stack Exchange Network

Stack Exchange network consists of 174 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
18 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
17 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
18 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
25 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
112 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
23 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, ...
6
votes
2answers
429 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
18 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
15 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
0answers
28 views

Child custom css not overriding index styles even with !important

Firstly the child theme CSS wasn't overriding the parent theme CSS so I used the below code in functions.php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', PHP_INT_MAX); function ...
0
votes
1answer
24 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
27 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
40 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
197 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
14 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
68 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
31 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
714 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
47 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
165 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
206 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
42 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
524 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
417 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
141 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
208 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
43 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
28 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
26 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
6k 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
144 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
434 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
2k 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
252 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
299 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
141 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
47 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
91 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,...
0
votes
3answers
135 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....
0
votes
2answers
63 views

WordPress website not showing changes without clearing cache

I am building a WordPress website with an Underscore theme, it is hosted on flywheel. Everytime I make changes to a page, the styling style.css file is not picked up unless I do a hard reload/ clear ...
-1
votes
3answers
3k views

I can't install theme: theme install failed

The package could not be installed. The style.css stylesheet doesn’t contain a valid theme header. What do you guys think went wrong?
0
votes
2answers
405 views

How to override styles from child theme if all the styles are in a folder?

In my situation, style.css file has just package information and a comment as: All css files are placed in /css/ folder. In the css folder, I see a bunch of different styles and I don't exactly know ...
0
votes
0answers
46 views

How to set up workspaces with Chrome & WordPress?

I'm using SASS & Gulp for my development. Though I can’t properly setup workspace in Google Chrome. I add project folder (should be theme folder, right?) but what should I map to what to edit ...
0
votes
2answers
1k views

Adding Custom css file

Can anyone help me how to add custom css file in wordpress. I followed the below link, Where are Additional CSS files stored. But it shows only adding additional css, but i want to add css file and ...
0
votes
1answer
296 views

stylesheet in header or functions?

So I have an interesting dilemma here. My understanding is that best practice is to load up stylesheet, including Bootstrap css and javascript via functions.php file. However, in the header.php file ...
0
votes
3answers
3k views

Admin area is not loading properly

Recently I've locked myself out of my WordPress site by changing the site URL. I fixed that problem by reverting the site URL to the original one in PHPmyadmin database. But what happens now is that ...