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

0
votes
1answer
69 views

Is there a way to specify an extra class for a post or page with no title?

If I do a post or a page with no title, I'm left with an empty h1 tag at the top of the post/page. I'd like to either get rid of the h1 in these cases, or else be able to add an extra CSS class to ...
1
vote
1answer
368 views

Multiple Page Templates & CSS

What's the best practice for handling CSS on a theme with multiple page templates? For example: I will have a Full Width page template and a 2-column page template. Is it best to just call out the ...
0
votes
2answers
458 views

Add class to navigation link of page

On my Wordpress site I have a three level navigation. In the second level of every main navigation item is a "toolkit" page. I would like to highlight this page in the navigation. Is there anyway ...
1
vote
2answers
5k 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?
0
votes
2answers
177 views

How to change a specific character in a theme option value - replace a space with a plus sign

I'm writing a theme where I'd like to give users the ability, via a theme option, to specify a typeface for their site with Google Web Fonts. If a user wants to embed a font like, say, News Cycle, ...
1
vote
1answer
197 views

Is there a filter for editor-style.css file?

I need to add multiple css files from a css framework to my editor-style.css file. The point is that i don't want to update the editor-style.css file anytime there's a new update from either my theme ...
7
votes
1answer
574 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 ...
0
votes
2answers
848 views

Best way of adding CSS which can be manipulated by the user via theme option panels?

I thought about adding it as inline CSS with code from the functions.php (not really sure how to do it). Something like this: function addcss() { background: $this_is_the_css_value; } I would ...
1
vote
2answers
1k views

How to insert custom code into wp_nav_menu structure?

I was able to use <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => false ) ); ?> to create the menu within my theme. Messed around with 'items_wrap' but ...
0
votes
1answer
371 views

Using theme options to change a border-radius value

I'm developing a theme where I'm using theme options to allow users to set various things -- text size, background colour, link colour, etc. The basic code I'm using for the options is in header.php ...
1
vote
1answer
346 views

How do I write into a file (css)

I'm writing my first wp plugin and I have many problems, most of those I got to solve by just reading the codex, but I don't know how to write into a css file within my plugin's options. Maybe there's ...
0
votes
2answers
5k views

how to hide submenus for the not active pages

I would like to expand only the active part of the sidebar menu and hide the parts which have nothing to do with the actual selection. Just like how its done on every Explorer like file manager, or ...
2
votes
1answer
1k views

Set Image width='x%' (percentage width not pixel width) when inserted via the media manager?

When uploading images via the media manager there are a couple of set sizes available such as thumb, medium and large. I do know how to add additional sizes, but I have yet to get it to insert an ...
-5
votes
1answer
772 views

How to create an automatic MultiColoumn MegaMenu with Categories WordPress

I'm looking for an easy to use step by step guide on how to create a MultiColoumn menu for categories on wordpress. Actually in my blog I have 10/12 "main" categories and a couple of them have ...
1
vote
3answers
1k views

Best approach for loading a sidebar Only if the screen max-width is >900px?

I have been playing around with media queries quite a bit lately and I love the concept. It is so easy to display images or change div floats depending upon what the users screen max-width is. I'm ...
0
votes
1answer
773 views

CSS not being applied

I am pretty new to web design, so this is a perplexing problem to me. I am creating a floating social media share button to the left of my content that scrolls with the blog content. Here is the code ...
1
vote
2answers
1k views

Custom CSS class or ID on menu items that have a Submenu

If I want to apply a style to only an item in a menu that has a submenu, how can I select that with CSS?
0
votes
1answer
392 views

Determining the “current_page” in WordPress Custom Menus

I am using WordPress Custom Menus. I have links like Home - Rendered using home.php Blog - Rendered using page-blog.php with WP_Query to get blog posts Services - Page Portfolio - Rendered using ...
0
votes
1answer
640 views

Custom post type and body_class: Remove “blog” class

I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc. I have ...
2
votes
1answer
559 views

I'm trying to add an image in my CSS

I'm trying to add an image in my CSS with the theme folder code, <?php bloginfo('template_directory'); ?>, which works in HTML but for some reason it's not working in the CSS. Does anyone know ...
0
votes
3answers
2k views

Use PHP in stylesheet to specify a background image based on Category ID

In my stylesheet I'm hoping to use code like this... background-image: url(/wp-content/images/' . $category->cat_ID . '.jpg); ...to pull in a different background image for each category. So ...
1
vote
1answer
572 views

Can't call external stylesheet for Wordpress admin (using wp_admin_css)?

I tried the following: <?php function my_wp_admin_css() { echo '<link rel="stylesheet" href="/wp-content/plugins/custom-admin-style/wp-admin.css" type="text/css" />'; } ...
3
votes
4answers
504 views

Suggestions for creative use of post format feature, or themes that use them well

I'm looking for themes or examples of sites that use the post format feature in an interesting way. I suppose adding special styling for each post format would be a good start. But if anyone knows ...
0
votes
1answer
286 views

How to make widgetized footer styles be inherited from body?

I'm making a WordPress site using the Thesis framework. It has a widgetized footer area. I expect to be changing all the font styles frequently and don't want to have to change them in a few places ...
0
votes
1answer
381 views

New wp menu menu styling

Ok ,i am not a great fan of the menu of WP, but now it manage this inside pretty ok, i have to make theme that use that menu. Now for styling i am a bit challenge... here is the problem... the menu ...
-3
votes
3answers
6k views

Plugins to generate CSS Sprites? [closed]

I see that w3 total cache can't offer CSS sprite generation. Is there another plugin that can complement this feature? Thanks. update: I didn't mean that w3 total cache doesn't allow CSS sprites to ...
0
votes
1answer
367 views

How to add drag and drop functionalities to a div inside option panel

Hi to all it's a few days that I'm trying to add some new functions to my theme option-panel, you can see my questions here: How to add an export function to a custom Option Theme Page Add a preview ...
1
vote
1answer
440 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 ...
3
votes
2answers
543 views

Add a preview to a Wordpress Control Panel

I'm trying to create a new wordpress template and inside it I added a Control Panel, inside this control panel there is an option that allows user to choose where he want's to place a on a map, I try ...
-1
votes
2answers
288 views

How customizable is a self-hosted WordPress blog compared to a Blogger blog?

I currently have a Blogspot blog and I'm thinking of making the leap to a self-hosted WordPress one instead. Everything I've seems to suggest this is the best way to go for the best possible ...
3
votes
2answers
831 views

Modify CSS via Theme Control Panel

Hi to all I'm trying to create an advanced control panel for my first Wordpress template but I'm not able to add a function that I will need. The function that I'm trying to add is the possibility to ...
0
votes
2answers
2k 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
1answer
364 views

CSS - why does my sidebar drops to the bottom of the page?

I spent almost an hour searching why my sidebar here: http://www.r-bloggers.com/ Is dropping to the bottom of the page. Could you please advise on how to fix it? Thanks.
1
vote
3answers
2k views

How to display post title & excerpt when mouse hovers on an image?

I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post ...
2
votes
3answers
207 views

Styling readme.html in plugin?

I am making readme.html file for a plugin with some detailed setup instruction that need to include screenshots. As rest of UI I want it be consistent with WordPress style and so I looked at its own ...
0
votes
1answer
853 views

Displaying custom post types as a gallery

This is a bit of a specific question--I have found bits and pieces of information on the net, but nothing that puts the whole picture together for me. Hopefully I can get some help here. Background: ...
1
vote
1answer
1k views

Dynamic sidebar nav with current page highlighting

My sidebar loops through all of the child pages based on the parent page. For example, if you're in the "About" section you'll only see "About" child pages in the sidebar. My problem is that I have ...
2
votes
3answers
245 views

Wordpress Plugin Look & Feel

Is there a list of the ID's and Classes I can give HTML elements in the admin panel in order to closely mimic the wordpress look and feel?
2
votes
1answer
625 views

Highlighting the current page in a navigation menu which links are generated with a custom loop?

This is a second navigation menu I'm using: <ul id="forums"> <?php $custom_posts = new WP_Query(); ?> <?php $custom_posts->query('post_type=bbp_forum'); ?> ...
1
vote
1answer
442 views

Using if/else statements with output from theme options

In another question I was talking about using theme options to modify CSS. This is a separate but related question. When a user sets a link colour in my theme, here's how I'm including their choice: ...
0
votes
1answer
2k views

Using theme options to change link colours

I'm developing a WordPress theme with some theme options (using the ThemeShaper sample theme options page), and one of the options I want is to allow users to set their own link colours. At the ...
0
votes
1answer
639 views

How put links in wordpress dynamic sidebar?

i would like put link after each widget in dynamic sidebar. I thinks is possible if i use static sidebar, but i don't found any tutorial for this. Thanks you
0
votes
4answers
283 views

Customizing wordpress to match your site theme

I have been wondering about how I could customize a Wordpress theme to look like that of my site, which is basically made of simple html and css. Alternatively, do you think there is a customizable ...
0
votes
2answers
689 views

How to edit background color of only one sidebar?

I'm using Oulipo theme on this site, which has two sidebars. I'd like to ask how can I change the background color of only the left sidebar? Also, how to change the text, hyperlink, hover and ...
1
vote
3answers
2k views

Best way to inject css into admin_head in plugins?

I'm looking for the best way to inject CSS into WordPress' Admin CP. Currently, I'm using the admin_head action hook and in this hook, I'm using dirname( __FILE__ ) to retrieve the directory for the ...
1
vote
2answers
808 views

How do I add (css) class to a custom link to make it current_page_item

As a custom menu item wp doesn't add the class current_page_item All other links it does? <ul class="nav" id="menu-mainmenu"><li class="menu-item menu-item-type-custom menu-item-home ...
0
votes
1answer
999 views

How do I use add_action on custom widget?

First hope you will take a look example widget http://pastebin.com/2cL7BmgF There have male and female option. Let say I select male and I want add male.css to wp_head When I put something like this ...
0
votes
2answers
3k views

Having Trouble Styling a Table in a Wordpress Post

I am trying to style a table in a Wordpress post, but am having difficulty getting it to work. I have set the post to HTML-editing mode and can get some of the styles to take, but not all. (To be ...
0
votes
1answer
2k views

Help with a little CSS logo/header modification?

I've almost got this figured out, but I'm a total newbie to coding and this last bit is confusing me. I'm trying to get my logo "mascot" to be flush with the top line of my header, and sitting 'on' ...
0
votes
1answer
307 views

Wordpress menu: How to make www.link.com/#name never contain current_page_item class?

I am using the wordpress menus on a website, but the problem is that one of the links on that menu is www.homepage.com/#order So, when I am on the homepage, both "home" and "order" links on the menu ...