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
345 views

Right align a youtube video

I'm trying to right align (class="alignright") a YouTube video AND allow my client to edit the surrounding text in the future using the visual editor. I simply added class="alignright" to the tag ...
0
votes
1answer
260 views

Creating a mobile site by adding a new class to the body tag from functions.php

Essentially is there a way to use a function in functions.php to turn the <body> tag into <body class="mobile">? I have code that recognizes mobile devices but right now it's set up to ...
1
vote
3answers
74 views

How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]

I just started working at a company and they have a website that was partially completed by another designer and have hired me to complete and make changes to it. It seems that most of the website was ...
1
vote
2answers
257 views

Can I install/embed Wordpress on a 'single page'?

I'm building a website from scratch (PHP, jQuery) and want to have full control over the design, implementation, etc. I want to install Wordpress so that when you go to a certain section of the site, ...
1
vote
1answer
536 views

How can I make this custom menu work?

Can someone share with me the easiest way to convert this to work with wordpress’s 3.0 built in menu support. So far I have the topnav menu working correctly, but I’m having a hard time getting the ...
1
vote
2answers
109 views

Accessing Style Sheet Comment Like Wordpress

I want to know how to access the comments on the top of a style sheet with php , like the way wordpress does. If we create a new theme for wordpress than we have to enter our name , blog name and ...
0
votes
1answer
507 views

.current_page_ancestor broken in Twenty Eleven

I would like to have a level 1 menu in a vertical menu and a full menu in a vertical menu in the left sidebar in Twenty Eleven. My problem is that I would like to make the top item bold if the user is ...
0
votes
1answer
177 views

Common page width? [closed]

I just made a new wordpress theme for a code type site, I am currently at 920px wide, I am curious what most people are using for a width now days, I would like to go wider but I just want to know if ...
-1
votes
1answer
42 views

Will the following code make my css deal with images in the optimum way?

In Appearance/Editor, the Stylesheet for my theme has in it the following code: #content img { margin: 0; max-width: 640px; } #content .attachment img { max-width: 900px; Does this mean ...
0
votes
1answer
480 views

WordPress Custom Superfish CSS Problem [closed]

The problem can be found here: http://themeforward.com/demo2/ Use my menu and navigate to Features > Shortcodes > Typography. Notice how the border ( ul .sub-menu { border:1px solid #000 } ) moves ...
-1
votes
1answer
480 views

Current Post/Page Ancestor, CSS

LINK: http://themeforward.com/demo2 Checkout my menu. Hover over Features > Shortcodes > Typography. Notice how when you put your mouse over typography the background of Shortcodes turns to the ...
0
votes
1answer
471 views

Customizing WP-syntax to get custom colors

I downloaded the WP-syntax plugin and want to customize it to show a black terminal-style background. I edited the file wp-syntax/wp-syntax.css to .wp_syntax { color: #100; background-color: ...
2
votes
1answer
720 views

Duplicate and alter sidebar for Twenty Eleven

I'm trying to create own template including submenu instead of the regular sidebar in Twenty Eleven. Although I manage to create and select my new template the page ends up with bad CSS. Here is ...
0
votes
1answer
1k views

wp_enqueue_style in Plugin [duplicate]

Possible Duplicate: Where is the right place to register/enqueue scripts & styles When I enqueue a css style in a plugin like so: function add_my_stylesheet() { wp_enqueue_style( ...
0
votes
2answers
250 views

wordpress admin plugin menu custom css

I have a plugin that has a top level menu and subsequent submenus. Each one of these pages are going to need their own css and javascript. My code at the moment is: //main menu add_menu_page( "My ...
0
votes
1answer
195 views

Getting values from options page to css

i got an options page that needs to affects a certain (for now) css value.. i have about using php variables in css and creating custom global variables in wordpress but havent something easy enough ...
0
votes
1answer
112 views

Custom menu styling

I'm trying to style a custom menu here so that I can let other people manage this site alongside myself. What I'm trying to do is remove the text for the top level links while leaving the a as a ...
1
vote
1answer
1k views

How do I add an indicator to my .menu-item if it contains a .sub-menu?

If your common with the code that wp_nav_menu function generates. You should know what im asking for. I need to add an indicator like a plus sign or an arrow to indicate that this menu-item has a ...
0
votes
1answer
399 views

How do I override all stylesheets and scripts without a plugin

I'm finding that plugins completely destroy my source formatting and generally suck at following standards. How can I absolutely block all style-sheets and move all .js to the footer of the site ...
1
vote
1answer
2k views

Include CSS with PHP without including wp-load?

I have a CSS-file generated from PHP. In my file it says... header("Content-type: text/css"); define('WP_USE_THEMES', false); include '../../../../wp-load.php'; I've read that including ...
1
vote
1answer
533 views

Custom CSS without css.php file

i'm creating and theme and would like the user to be able to select their font family. Typically, i see that people use css.php files and pass user defined variables inside it. I'm a bit concerned of ...
0
votes
3answers
853 views

Style every second widget?

I need to apply a certain style to every second widget in my sidebar, and I'm reluctant to use :nth-child due to cross-browser compatibility issues. Is there a bit of PHP that will allow me to apply a ...
2
votes
2answers
181 views

How do I add a class to <body> that is generated by <?php body_class(); ?>>

I need to add a class of "two-sidebars" to the regular bunch of WP classes that are generated by <?php body_class(); ?>> The reason I need to do this is I'm integrating WP into a Drupal ...
3
votes
2answers
546 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 ...
0
votes
1answer
978 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
89 views

Styling child custom menu pages

I have a custom menu created using Appearance > Menus which contains top level and child pages. I would like to be able to indent my child level pages to give some sort of visual hierarchy to the ...
0
votes
2answers
60 views

W3TotalCache and Javascript — what should go where, when?

I'm just starting to use W3TotalCache and am a little perplexed by how I should load the gobs of javascript and CSS rendering on the site in the question. Adding some of the pre-minified jQuery ...
-1
votes
1answer
216 views

How to highlight current menu bar base on the URL?

================================== Home Contact About ================================== For example, The menu should looks like ================================== Home Contact About ------- ...
1
vote
2answers
817 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
228 views

Sidebar missing from Homepage

The home page displays the sidebar below the rest of all the latest posts, leaving a vacant sidebar area for the majority of the (long) page. The sidebar displays fine on any single post. My ...
2
votes
2answers
1k views

Get parent category class in post_class()

I am trying to add the parent category class in post_class() of some posts from one of my subcatgories. I have an advanved theme so I need to style all the posts from the parent cateogry using it's ...
0
votes
3answers
611 views

Unable to align my sidebar to the contents section instead of comments

Relevant link: http://themeforward.com/demo2/2011/01/17/testing-comments/ I've been toying with this for about 10 minutes, trying to get the sidebar to align properly and I can't figure it out. I ...
1
vote
3answers
358 views

Custom CSS for plugin form

I have a short code that is adding a form to a page. How do I ensure that the CSS for the form is loaded in time with the shortcode?
1
vote
1answer
2k views

Gallery CSS Problem

Right now I'm using a code in the functions to override the default WordPress gallery CSS. But it seems for some reason that WP only wants to let me put 3 images per line in a gallery, despite my ...
1
vote
1answer
636 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/
1
vote
1answer
738 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 ...
0
votes
1answer
366 views

Hide Overflow on a Specific WordPress Template

I'm trying to hide the overflow in CSS for specific template pages but can't seem to get it to work - I know that template pages are prefixed with a class but this doesn't seem to help targeting. I ...
0
votes
3answers
373 views

Combining CSS files into a single cached one

I'm creating a theme where i want it to have different widgets and plugins. Each plugin would ideally have it's own css file. However, this approach is not so good because i can end up having multiple ...
5
votes
3answers
681 views

Splitting WordPress theme CSS into multiple files, good or bad?

I'm developing a WordPress theme framework. I want organize CSS for each section into separate files for the following reasons. Developers can easily deregister styles by parent theme and load their ...
0
votes
2answers
1k views

RTL Stylesheet Confusion with WordPress

All I understand about RTL is that some languages are written right-to-left. In a WordPress theme, what role does the rtl.css stylesheet have? I was under the impression that the only difference was ...
1
vote
2answers
4k views

How to add (css) classes to only one wp_nav_menu()?

Edit I removed the original Question as this Q has far above 1.000 views now - which means it's important to a lot of people - to show you something that works a) without a custom Walker & b) is ...
0
votes
1answer
384 views

Google Chrome CSS issues [closed]

I am currently having some CSS problems with Google Chrome. Slider is overlapping with the buttons on the right side. My theme layout (CSS) works fine with Firefox, and IE but not in google chrome. ...
1
vote
1answer
579 views

different template for first and second level custom post page

I have a custom post type, for examle, products. They can be multilevel, like pages, f.e., Products (custom post type) Books |- LOTR |- Sherlock Holmes |- Cooking help |- etc ...
1
vote
2answers
2k views

different class (css) for sidebar widgets

I want to add different class (css) in widgets in site sidebar . For example: First widget in Sidebar -> class=sidebar-top1 Second widget in Sidebar -> class=sidebar-top2 third widget in Sidebar ...
0
votes
1answer
816 views

Problem Implementing parallax in header of bp-default theme

I'm trying to implement parallax in bp-default theme's header, but facing problem .... The page getting glitches, the adminbar is centre aligned but the rest of the content of the page is getting ...
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 ...
1
vote
1answer
1k views

Duplicate attribute class causing site validation error

The following bit of code results in a duplicate attribute site validation error. This template script: <div class="clearfix" <?php post_class() ?>> produces this source output: ...
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 ...
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
369 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 ...