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.

52 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
143 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 ...
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 ...
2
votes
2answers
120 views

How can I enqueue a style only when a particular widget is active?

I have a plugin which requires a style sheet for the widget. I am trying to register the stylesheet when the widget is created, however the style sheet is not being queued and the styles ignored. The ...
1
vote
1answer
28 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 ...
1
vote
0answers
48 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-...
1
vote
3answers
327 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
vote
0answers
63 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, ...
1
vote
1answer
213 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 ...
1
vote
0answers
102 views

How do I view registered syles and scripts for enqueue

I know that wp_register_style(), wp_deregister_style() and wp_enqueue_style() are used for css style registration and enqueue management. However, I am interested in viewing ALL registered styles (...
1
vote
0answers
2k views

get_template_directory_uri() gives me wrong path when I try to use wp_enqueue_style

In my functions.php I use wp_enqueue_style and wp_enqueue_script as I read this is the correct way to add stylesheets and scripts to pages. But as my host has this sub folder where the install goes ...
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
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
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
50 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
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
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 ...
0
votes
0answers
106 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
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:       ...
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 ...
0
votes
1answer
91 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, ...
0
votes
0answers
132 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
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
1answer
301 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
307 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: <...
0
votes
0answers
314 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 ...
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
3answers
168 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
0answers
52 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
1answer
815 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
1answer
500 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
515 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
223 views

Mobile view logo background colour in wordpress

My website is http://fitnesslover.byethost18.com/ I’m using storefront theme. It shows perfectly in desktop. But when in mobile mode the background color behind the logo disappears. It takes the ...
0
votes
1answer
32 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
134 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 ...
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
142 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. ...
0
votes
2answers
248 views

Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)

I am using this to load css styles in the admin area (for any user who is not an administrator): function wpse_admin_styles() { if ( !current_user_can( 'manage_options' ) ) { echo '<...
0
votes
0answers
173 views

editor style css and page template with and without sidebar

I have two page templates in my custom theme. Full width template and Default template. Full width template does not have side bar and is of width 980px. While default template is having sidebar on ...
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
107 views

Creating a custom header

I am using the greyzed theme and want to create a custom header using my own image. my computer skills are limited and i have no idea where to start or how to even open the php files if that's what I ...
0
votes
1answer
161 views

Best practice to include custom user styles in widgets

What's the best way to include custom user styles in widgets? For example adjust colors for buttons, borders etc. without having the user to develop a complete new stylesheet.
0
votes
1answer
139 views

Custom link color or stylesheets

I'm developing av theme for my WPMU users and are wondering is there a function for choosing the colors on the links? The same way Wordpress lets you change the background-color or header-images. ...
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
283 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 ...
0
votes
1answer
3k 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 ...
-1
votes
1answer
459 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 ...
-1
votes
1answer
306 views

My CSS, footer and header don't show up!

When I activate my theme in my-admin on WordPress, my CSS, header and the footer don’t show up. I really don't know what the problem is because I followed all the steps of a tutorial. header.php <...
-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 ...