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 ...

learn more… | top users | synonyms

3
votes
1answer
223 views

TinyMCE custom stylesheets for different post types

I use a custom stylesheet for TinyMCE, by placing custom styles in editor-style.css in my theme's directory. I am trying to figure out how to use a different stylesheet depending on what post type we ...
2
votes
2answers
1k views

how to make stylesheet appear in theme editor?

I have a stylesheet in my theme in the css subdir of the theme dir (css/style.css). The question is how to make this .css file appear in the theme editor of the WordPress admin. (I know using the web ...
2
votes
2answers
958 views

How to implement different color schemes in your themes

This question is for theme developers. I know how to use the settings API to gather input data, but I was wondering what's the best way include the styles. Let's say you have 4-5 versions of the ...
0
votes
1answer
771 views

How to separate each individual blog post?

Im trying to create a blog page that has each post separate with a border around each one. A good example I can think of would be http://blog.pagodabox.com/. How every post is divided into its own ...
0
votes
1answer
492 views

How can I style a certain element only when wptouch is active?

I just installed the wptouch plugin for auto-styling my blog in mobile devices. How can I style a certain element on my page to be hidden when this view is active? I.e., in particular, on my blog ...
2
votes
2answers
1k views

When enqueing a stylesheet, is it possible to remove the type attribute?

I'm updating my self-built theme to HTML5, and easily made a number of changes already. My theme's sole stylesheet is added to the page head via wp_enqueue_style in the functions.php file, as ...
1
vote
3answers
5k views

how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?

I'm using the well-written Oenology theme by Chip Bennett as the Parent to my own Child theme. In my development process, I've discovered that there are some challenges for people writing Child ...
0
votes
2answers
214 views

Proper way to include stylesheet for panels

What is the proper way to include a stylesheet with my options panels in wp-admin for a given plugin or theme. In other words -- the stylesheet that styles the panels. I mean, in my panel template ...
0
votes
2answers
58 views

Sidebar doesnt get updated?

I was trying to edit a theme by updating the style.css of it. But I also needed to add some manual html to the sidebar like ul li's . I maintained the order and updated the html od sidebar within the ...
1
vote
1answer
303 views

Admin Panel pagination link styles

Whenever I write plugins that use Admin Panels, I include some form of pagination using the paginate_links method and I have always been able to style them in a nice way using the suggestions on this ...
12
votes
3answers
2k views

How important is it to enqueue a theme's stylesheet?

I have trawled the net looking for an answer to this, but for some reason all I can find are actual examples, but without that particular explanation, which is clear say in the case of scripts. Can ...
0
votes
1answer
372 views

404 error on dynamic stylesheet creation

Following this solution to create dynamic css instead of inline css from sorich87 I get an error when requesting the dynamically generated stylesheet. Css is in there but also the default wp error ...
0
votes
3answers
126 views

Exclude stylesheet from admin

I have been using the following function to enqueue some CSS to my theme. However, they are used in the admin area as well: wp_enqueue_style(...) I don't want them to be used in the admin area. ...
1
vote
1answer
443 views

How to override my plugin's php classes with duplicates that are in my child theme folder

I have a child theme in wordpress and one of the plugins I am using is called jigoshop. I made a copy of a few php classes from the plugin and placed them in my child theme folder. I want these ...
1
vote
1answer
233 views

Changing stylesheet depending on custom taxonomy terms

My client would like the background & header colors to switch depending on terms within the custom taxonomy 'Grades'. These terms are kindergarten, first grade, second grade, etc... (all ...
1
vote
2answers
245 views

getting url in wp_enqueue_style

I'm having trouble getting the second argument in wp_enque_style. Here's how my site is setup: style.css custom_style.css index.php In a template, I have this code: $stylesheet_url = ...
0
votes
1answer
105 views

Locally change the font family [closed]

I'm using the standard Wordpress theme (WordPress Default 1.6 by Michael Heilemann). The standard font for my articles is a sans-serif font. I'd like to display, for a sentence only, a serif font ...
0
votes
1answer
1k views

what could cause get_stylesheet_directory_uri() to fail?

On my new worpress install, I have code that reads <img src="<?php get_stylesheet_directory_uri(); ?>/images/logo.jpg" /> This code worked, untill I started using a subdomain (went ...
0
votes
2answers
410 views

problem loading stylesheets to wp_head dynamically

I'm trying to create a wrapper shortcut function to register and load stylesheets in the header. currently, the function loads this css file src: http://my.test/wp-content/theme/css/.css I, ...
1
vote
1answer
197 views

How to load parent theme style.css?

My WordPress site uses a theme that is a child of a parent theme. As required, both themes have style.css files. However, as far as I can tell WordPress only provides the mechanism to load the child ...
0
votes
2answers
952 views

WordPress Child Theme - twentyeleven

This is my first attempt at creating a child theme based off the WP twentyeleven theme. To begin with, I am using MAMP on my mac and have the following directory structure: ...
0
votes
1answer
888 views

Styling issue with custom menus and sub menus

In a previous question I asked (and later worked out) how to style sub menus, I want to expand on that with another question related to styling sub-menus. I have hit an issue were if the parent is ...
0
votes
1answer
5k views

Modify Twentyeleven child theme CSS - How to change body font size?

I've created a twentyeleven-child theme and activated it. I'm trying to increase the size of the body font on all pages. Do I do this in style.css of the twentyeleven-child theme? I can't find the ...
0
votes
2answers
974 views

Adding style sheet to specific page

I have set a page as a homepage for my site. There are specific style sheets just for the homepage that I don't need to use globally. I'm still new to WordPress so this is so confusing to me. I ...
0
votes
1answer
156 views

Links on the page, when being printed, have the URL next to them

I'm attempting to create a print.css stylesheet for my site and I'm running into an interesting problem. When I print any page on my site, all the links on the page are printing the URL directly next ...
0
votes
1answer
183 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
213 views

Alternate stylesheet only works with absolute address for link?

I am trying to add a stylesheet when users are accessing the blog section of my site from and iPad. The first snippet of code works, however, I don't want to use the absolute path. I want to use ...
-1
votes
1answer
337 views

Making a 1140px wide header logo in the twenty-ten theme?

I've created a child theme that is a wide version of twenty-ten, and it is working for the most part. But I am struggling to make the header logo wider. You can see the work in progress here at ...
3
votes
3answers
374 views

Stylesheet switching and caching

I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to ...
1
vote
1answer
679 views

Loading different stylesheet on Wordpress pages?

I have one stylesheet linked to my Wordpress page in header section: <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css" /> Now, I want to ...
1
vote
1answer
82 views

Remove Wordpress Scripts

I am working on a custom page template in my theme, i want to remove all other styles and scripts which are loaded, like default theme style, jquery & other scripts, i want to remove all for the ...
1
vote
1answer
596 views

Wordpress override bloginfo variable

How would I override a bloginfo variable in wordpress? For example, I want to replace this: <?php bloginfo('stylesheet_directory'); ?> to return a custom URL like http://mysites.com/hello/
-2
votes
1answer
89 views

Problems loading stylesheet and permalinks after rebooting

I am using Ubuntu Server 10.04.02 LTS to host my WordPress, which version is 2.9.2. The problem is, after rebooting the server and loading my homepage of WordPress, the style of my blog was just ...
1
vote
1answer
557 views

Dynamically add CSS to the visual editor

I created an options page for my theme, where I can manually edit the CSS. Lets say I change the CSS in the options page for the <H1> tag, so it will now change it on the front-end. What I want ...
1
vote
2answers
4k views

Specific css on homepage, different one for other pages

Is there a way to have specific css on the homepage and use a different one for all the other pages?
6
votes
2answers
519 views

Style reply form different than comment form

Is there a way to display (css and html) in a different way the "reply" form and the main "comment" form?
1
vote
3answers
2k views

Can't edit style.css in subdirectory of my theme?

I want to edit a file style.css but the theme editor shows this: /* ---------- Reset Tags ----------- */ @import url("css/reset.css"); /* ---------- Reset Tags ----------- */ @import ...
2
votes
2answers
779 views

add generated stylesheet from parent theme after child-themes style.css

I have a child-theme -> parent-theme setup, where I need to have stylesheet called generated.css loaded in addition to the style.css file added by the active child-theme. The generated.css file is ...
0
votes
2answers
1k views

How do you modify CSS files via admin panel?

All theme styles are in style.css file. Let's say first line looks like: body { background-color: #fff; } Now, I've created an option in admin panel named body_bg. User types #000 there and I ...
0
votes
3answers
666 views

Correct way to include extra styles & script files?

I'm just wondering what is the correct way to do it? Add it in via the theme header? If so, what is the proper way to do it? I see a lot of the other current stuff in there using the bloginfo() ...
0
votes
2answers
848 views

Wordpress noob, assign custom stylesheet using @import or if? Didn't work for me

I'm trying to import independent stylesheets for the blog page, gallery page and the contact page but I'm having some trouble getting this to work. <link rel="stylesheet" type="text/css" ...
1
vote
2answers
636 views

What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?

I have written a basic gallery plugin that uses wp_enqueue_style to include a stylesheet on the page. I'd like for the WordPress theme to be able to override the style of the plugin which means I'd ...
0
votes
1answer
776 views

Looking for methods to Check if File Exist

I'm working on a custom theme framework for educational purposes. I basically have a header.php in a child theme that i want to make smarter. I'd like to only include a stylesheet if the file ...
0
votes
1answer
707 views

Why Do I get “wp_remote-get: could not handle for fopen()”?

I'm trying to get an image from Google but... wp_remote_get returns me: Could not open handle for fopen() to https://ajax.googleapis.com/ajax/services/search/images? ...
0
votes
2answers
2k views

How to add CSS style sheet dynamically in wordpress

When certain conditions are met (e.g. post vs. page or a category is tagged, etc) I would like to load an additional CSS file. This file would, in theory, change link colors. Or perhaps change the ...
1
vote
1answer
2k views

Changing permalink changes stylesheet path?

I have changed my permalink structure to /%category%/%postname%/.The links are working, but the problem is that my style.css is not working in some of the posts which are inside the category.
2
votes
2answers
3k views

wp_enqueue_style built in styles

I'm writing (rewriting) my plugin to use wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-dialog'); Which is great! But to use the dialog I need to load a jquery style sheet with ...
0
votes
2answers
582 views

Configure paragraph style without editing CSS

Is there a way to change the default text paragraph style in WP without changing CSS by hand? I.e. I need GUI for that. In particular, I want to configure padding height between paragraphs.
5
votes
2answers
4k views

Generating CSS Files Dynamically Using PHP Scripts?

As part of my efforts to speed up my themes for my clients I am delivering my CSS via a dynamic PHP file. At the end of the called for example my_theme_css.php: This allows me to add Expiry headers ...
5
votes
8answers
7k views

How can I version the main CSS file?

How can I instruct wordpress to use a filename other than 'styles.css' for my main stylesheet - for example, styles-1.css? I'd like to do this for versioning and caching purposes.