Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of HTML output, usually via Themes. When you have to use this tag, then there's a high chance that your question is off topic on this SE network site.

learn more… | top users | synonyms

1
vote
2answers
2k views

hfeed CSS class in Twentyeleven Theme

The twentyeleven theme has hfeed class attached with the main container #page. I could not find any definition of hfeed in style.css. Does it have any purpose or its just a random class name given?
3
votes
2answers
242 views

Changing title to lowercase [closed]

Lets say i have 100 posts. And i would like to lowercase the title. but only 70 of it. I cant use text-transform or mb_strtolower. Is there anyway to download posts and lowercase the title with ...
2
votes
1answer
2k views

How do I register a stylesheet inside a WordPress widget?

I'm developing a WordPress widget following Dave Clements tutorial. It works well. Now I want to add some styles to it. I want the styles to be in an extra css file which will be loaded during ...
0
votes
2answers
504 views

JetPack comment threads are displaying above comment box? [closed]

As you can see in the attached image (http://i.imgur.com/V7642.png) my JetPack comments are rendering above the Discuss box. How do I go about moving them down? When I look in Chrome Inspector there ...
1
vote
1answer
608 views

Adding another “Add Post” button to admin

I would like another "Add post" button in the admin except I am going to call it "Add voucher". It will run specific plugins that add post will not. However that is irrelivant, all I need to know it ...
0
votes
2answers
356 views

CSS Customizations for certain page

I've been using Wordpress for a while, and came to a point where I need to make css customizations, but only for a certain page. I know that one way to do this is to use conditional tags: if ( ...
0
votes
1answer
164 views

Date based CSS/theme

Is it possible to set a CSS stylesheet or a theme for articles that were published before X date? The reason I ask is that we've just redesigned our website and some pages have images that are wider ...
0
votes
1answer
246 views

CSS not being applied using wp_enqueue_style

I am trying to load my style sheets in my plugin but they are not being called, the javascript files however, are being loaded. <?php /** Plugin Name: Plugin URI: Description: Version: Author: ...
2
votes
3answers
440 views

Is it possible to enqueue a raw CSS string directly from within a template file?

I was wondering if it's possible to enqueue raw CSS as a string directly from within a template file? I'm writing a custom template for a page and need to add some style rules for it. What I want to ...
1
vote
1answer
2k views

CSS for Created Menu “Active Selected” not working, everything else is!

I have created a Menu (for the nav bar) it is placed in a copy of the header.php file in my child theme right below: <?php wp_nav_menu( array( 'container_class' => 'menu-header', ...
0
votes
1answer
373 views

Add classes + taxonomy terms to wp_list_pages() output

I'm outputting a list of pages in my custom post type — a kind of tree — using wp_list_pages(). All's going well, except now I want to put some classes in the li's for styling. Even that's not going ...
7
votes
1answer
644 views

Assign a Class to the Current “Tag” for Formatting

Essentially what I am hoping to replicate is something like the "current-menu-item" class that is applied to WP Menus. My client is wanting to use Tags as a sub-nav, and I've managed to get the tags ...
4
votes
1answer
1k views

Automatically decrease font size for long words

I am working on an e-commerce site in which post and product titles will need to be displayed in fairly narrow divs. I would like to set a specific font size for words which can naturally fit in the ...
0
votes
1answer
94 views

Custom image size vs CSS sizing

I am developing a theme which will have 2 configuration options for the slideshow in the header; a full width version and a half width version. The theme is also responsive and so I am trying to ...
3
votes
4answers
4k views

Custom per-page sidebar widgets .. possible?

Let's say I'm doing a site about cars, and in the main content area of a Page (using a certain template), there are a few paragraphs about a particular car. In the sidebar, are several standard ...
1
vote
2answers
1k views

How do you customize the admin bar for buddypress?

I would like to update the coding on the wp-admin-bar. Since its positioned absolute, I would like to put a div around it that is relative and or just in a normal div. Or, I see you can hide the bar, ...
2
votes
2answers
2k 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
2answers
529 views

styles/default.css in markup, where does it come from? [closed]

I have the following line under the head tag but I don't have the file styles/default.css in my theme and consequently get a loading error in browsers. I'd like to eliminate this line but I don't know ...
1
vote
1answer
1k views

How do I make header.php use different css for different pages?

I register styles in function.php with function my_scripts() { wp_deregister_style( 'header' ); wp_register_style( 'header', get_template_directory_uri() . '/css/header.css' ); ...
0
votes
1answer
472 views

Load jQuery only on home page

I am working in a premium wordpress theme... It is a complex wordpress theme with lots of admin features so i feel very difficult to edit... Now i need to move a sidebar upwards only in homepage... i ...
0
votes
1answer
63 views

Wordpress Plugin Authoring question about jquery and css

When I'm writing a plugin, do I assume that jquery is included, or should I always wp_enqueue_script it and let wordpress figure it out? Also, what's the best practice for getting an image path ...
1
vote
1answer
135 views

IE and WordPress

I'm developing a WordPress based website. Using latest version of WordPress and Genesis theme. I've to use a seperate stylesheet for IE, how can I add that? Sorry for this silly question, I'm new in ...
1
vote
2answers
655 views

How to apply wordpress css styles to a jQueryUi dialog?

Im devloping a wordpress plugin, and I succeded in showing a modal dialog using jQuery. Problem is that I also show a list and buttons into that dialog, and i would like that those buttons and list ...
0
votes
2answers
956 views

CSS in child theme not overriding the parent theme [closed]

I am trying to make a child theme for a premium template. My css isn't overriding the parent though. I'm trying to figure out what's going on. Other than important the parent theme's css, is there ...
-1
votes
1answer
612 views

Site layout problems when logged in due to admin bar

Is there a way to when logged in have the banner on my page move down so many specified pixels? This is what it looks like when I'm logged in (as of course the dashboard bar at the top is there and ...
7
votes
3answers
2k views

CSS classes for theme

Does anybody know predefined (suggested by WP) CSS classes which should I use in my theme? I have seen somewhere in Internet a list of all CSS classes, which are used in WP theme, but can't find it. ...
0
votes
1answer
602 views

Creating new templates in child themes breaks layout

I am learning how to create new templates in WP. I am using a child theme of Twenty Eleven. My problem is that whenever I create a new template the layout breaks. For debugging I stopped using any ...
0
votes
2answers
224 views

Custom styles.css sheet for visual editor

I am trying to use my own styles.css for inside the body of the visual editor for my pages. However, when i add add_editor_style('styles.css'); to the functions.php page it doesnt change anything ...
0
votes
1answer
237 views

Apply styles to blockquote element with the WYSIWYG editor

I have a blockquote and I can float it left or right if I want by going into the html editor and adding class="alignleft" etc. Is there any way I can make that available to a non tech individual with ...
0
votes
3answers
107 views

Customising a theme

So I'm kinda new to this WordPress infrastructure. Everyone's been telling me about how great WordPress is and how something like 10% of the top sites out there are using it. So I have a couple of ...
2
votes
2answers
1k views

wp_tag_cloud inline CSS

I am using wp_tag_cloud but my problem is the inline CSS (for the font-size). I am doing RWD so I need full control of my markup/css. As I saw there is no property that will make it go away, so I ...
0
votes
1answer
93 views

Search Bar in Thesis Wordpress Site

A friend of mine installed all the Thesis documentation for my new website. I am fairly proficient in HTML and CSS, but I need help with one issue. She tried adding a search bar in my main menu ...
0
votes
1answer
78 views

I get “Cannot modify header information - headers already sent” when I change my theme

I get this error when I change theme in my wordpress. *Cannot modify header information - headers already sent by (output started at ...
0
votes
2answers
3k views

How to know which order Wordpress places CSS files?

I've installed the Roots theme (version 4 so I can use the 1140px Grid) on Wordpress 3.3.1, and want to edit the CSS. Initially I only get the style.css file in the editor and can't see the others. ...
2
votes
2answers
2k views

customizing recent posts

Im working on my first wordpress blog and trying to avoid plugins if at all possible for a lot of what doesn't really need to have a plugin. I am slightly familiar with php ( I don't understand it but ...
3
votes
1answer
80 views

What is the best way to provide plugin users with a way to customized the styles

I'm working on a plugin to be release to the public, it is a very simple plugin that includes a single html element in the page html. I can do many things to allow users customize its appearance: 1. ...
1
vote
1answer
156 views

Big side banners

I would like to have a big header side advertisements like this: What is the best way to achieve that?
0
votes
2answers
111 views

How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?

I need to change the color of some custom link elements in dropdown of my wordpress custom menu here. There 3 items in my dropdown that dont have any url associated with them: Air Duct Chimney Dryer ...
1
vote
2answers
249 views

whats happening with my index page?

I'm working on my first wordpress blog site and I think I'm doing pretty good. This is my site so far but I need some help with a couple things as I'm not sure why this is happening. I've styled my ...
2
votes
1answer
2k views

Modernizr and WordPress - How can I add a CSS class to the html element?

The instructions for implementing Modernizr state that I should add class="no-js" to the <html> element. Is there a way to do this in WordPress using a hook or filter? If at all possible, I'd ...
-1
votes
1answer
219 views

Using browser detection and the body_class() function to modify css

I'm using the following function, as described here: http://www.nathanrice.net/blog/browser-detection-and-the-body_class-function/ Now when I use the following css styles, it does exactly what I ...
2
votes
1answer
74 views

why does twenty eleven theme mix up the css measurement units?

I'm wondering why does WordPress's default theme mix up the css measurement units? For example: .one-column.singular #author-info { margin: 2.2em -8.8% 0; padding: 20px 8.8%;} Wouldn't be easier ...
1
vote
1answer
94 views

How to change header dimensions in Wordpress?

How can I alter the requirements for the header dimensions so that I can take an uncropped image and fill the top section (centring the whole image) instead of having white space at the top? I would ...
1
vote
1answer
498 views

Using PIE CSS in WordPress. “localizing” styles

I read before I can use wp_localize_script to replace a string in a file (adding path to admin-ajax). what if I want to do something similar, but to the template directory for CSS? PIE will get the ...
0
votes
1answer
535 views

100% Width Footer - Custom Child Theme

I am working on a custom child theme for Wordpress and I can not seem to get a footer width of 100% to be represented. Live Example Page : http://glustik.com/wordpress/ I have tried multiple things, ...
2
votes
2answers
891 views

Why is WordPress changing my HTML code

I've been playing around with CSS and HTML code and I finally got to the point where the section I was working on works. I saved my CSS, and updated my post, and everything looked great, but when I ...
2
votes
2answers
334 views

Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device

I created a mobile version of my site with CSS, with all my styles in a single stylesheet (using @media only screen and (max-width: 480px), only screen and (max-device-width: 480px) to define mobile ...
0
votes
2answers
23k views

How to add inline css code with background image in page html code?

I want to add inline css code inside a page of my blog. This css code calls an image as background of a div. Is this possible? and how to do that? I have tried to add the image as a Media resource, ...
0
votes
2answers
1k views

Making that Admin Bar transparent or a blue color

The question title is pretty self-explanatory - I don't really like the new Admin's bar's colour but I find it useful and want to keep it so I would like to change the colour of it. However, I'm not ...
0
votes
1answer
113 views

when I create a page with a /blog permalink the css gets messed up

When I create a page with a default template and parent set to no parent, with the permalinks name being sitename/blog the css on that page gets messed up(including the admin bar is all messed up), if ...