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
1answer
107 views

Add a custom stylesheet for BlackBerry

I want a little help loading a custom stylesheet in wordpress. I'm using PHP to check if the user agent is BlackBerry. If yes, I want to load blackberry.css, if no, regular wordpress style.css. ...
0
votes
0answers
43 views

WP_Nav Highlight Parent Issue

I'm trying to figure out how to highlight the parent nav of a page and becoming stuck. I've seen something like this : <li <?php if(is_page('services')) { echo 'class="current_page_item"'; } ...
0
votes
2answers
548 views

How to add a body class to all interior pages except the homepage

I want to add a class to the body tag to all pages EXCEPT the homepage. Right now I have. <?php body_class('interior'); ?> But it adds 'interior' to ALL pages including the home page. What is ...
1
vote
1answer
706 views

WordPress CSS doesn't update

I've got a new WordPress website that I'm testing that hasn't been updating properly when CSS styles are updated over FTP. I haven't got a cache plugin and I have cleared my browser cache and have ...
0
votes
0answers
283 views

Line break - ever-confusing in new editor

I can see this issue has been discussed at length but I'm still struggling to find a solution. I'm trying to get reasonable spacing between paragraphs Between first two paragraphs, I'm using one line ...
0
votes
1answer
75 views

What can cause JavaScript and CSS files to be minified?

On one of my client's site, I see that my plugin's JS and CSS files are minified. Trying to identify what causes the files to minify, I tried to deactivate all plugins (except mine), and changing the ...
-1
votes
2answers
72 views

How to change the CSS in one file?

Should I go to many files to change the appearance of Wordpress? Isn't it possible to change it form one file? And what should I learn from CSS to be able to modify Wordpress easily? I mean should I ...
2
votes
1answer
127 views

How to highlight the current page in the nav menu?

I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated. For example: You can clearly see that I'm hovering over a ...
0
votes
2answers
198 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
votes
1answer
771 views

Why there is a gap between <UL> and it's container (A drop down menu in wordpress) [closed]

This drop down menu works well in HTML but when i move it to wordpress template, there is a gap between and it's container (.menu-top-container). when the mouse on the menu you will find the gap. ...
4
votes
1answer
783 views

Logout/login redirect CSS issue

I'm using WordPress Multisite. When I use wp_logout_url(), I get redirected to the login page but somehow I end at a different login page without any styles applied <a href="<?php echo ...
0
votes
1answer
638 views

Override WordPress Widget CSS Classes?

I'm attempting to style lists in the sidebar (you know, <ul><li>) and I'm curious how to also make widgets adopt this class. Each widget seems to have its own class assigned to it by ...
0
votes
4answers
109 views

contact 7 plugin stops some pages from working properly

I started to use contact 7 plugin and I'm having a slider and some effects on other images when i activate the plugin they stop working this is the web page http://www.digitalways.com.sa/ I ...
0
votes
1answer
63 views

Using page-id-{ID} from body_class() in local dev, versus live staging

Not sure this is a question suitable for this forum, but I'll try: I think it is pretty convenient targeting elements in css/jQuery for a specific page by using the page-id-{ID} generated by ...
6
votes
2answers
4k views

How to add a “last” class to the last post in loop.php?

I need to add a "last" class to the last post that appears in loop.php. Can someone tell me how to accomplish this?
0
votes
1answer
85 views

Plugins not showing up for custom template

I'm customizing the index.php page. I've customized my header.php and footer.php and created the styles for both things. My main index.php page has: <?php /* Template Name: Main */ ?> ...
0
votes
1answer
134 views

Best practice when modifying plugins CSS [duplicate]

If i need to change CSS for a plugin, should i place the modified declarations with the plugins classes in my child themes style.css file or modify the plugins style sheet directly?
1
vote
1answer
253 views

Add a class to post title if a link ends with a certain extension

I am using a Page Links To plugin that allows me to link the post title to an external web page, rather than to the content of the post. And I link some of the post titles to external pages, and ...
0
votes
0answers
433 views

Menu li on hover reveals a Div styled with CSS special effects like transform shapes gradients or a background image

I was asked to make this a more obvious WP question, sorry. It is about the WP NAV MENU I think... Is there a way to have every menu item get listed and have a div correspond to it that is within the ...
-1
votes
1answer
185 views

How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]

I'm currently working on building this site: http://2013.whitehallrow.com/ I would like to centre the menu items so that there isn't the large gap after "Row Club" on the right. I've tried to locate ...
0
votes
0answers
217 views

Cant get theme to change footer color through theme customizer

I am having an issue trying to configure the theme I am working on to allow the footer color to be changed. So far all of my other options work so I am geussing it is an issue with the way I am ...
8
votes
1answer
11k views

How to enqueue style before style.css

How do I enqueue a .css file before style.css is loaded? Or make the default style.css dependant on another .css file? I'm trying to load a .css reset, which style.css would overwrite. Here's what I ...
0
votes
2answers
1k views

How to load a css file in one page only?

I have a javascript file and a corresponding css file. Both files should be embedded at a single wordpress page. I managed to load the javascript file, but how can a css file be loaded from/at a page? ...
-1
votes
1answer
150 views

Image width issue in IE [closed]

For some reason images are being displayed as a thin line in IE 8 and earlier and i cannot work out why this could be. I'm using CSS to re-size the images for the homepage, the reason for me using CSS ...
0
votes
1answer
173 views

individual images as navigation design TwentyTen

I can't figure out a solution for changing the black bar in Twenty Ten to individual background images behind each link. Using an image I created in Photoshop I have tried changing a few things in the ...
4
votes
1answer
1k views

How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?

How would I go about combining multiple CSS files and concatenating my scripts if they're being enqueued as WordPress recommends? My site is pretty slow and would like to optimize for performance.
6
votes
2answers
3k views

Forcing reload of editor-style.css

Is there a method to force the refresh of editor-style.css, when I change manually the stylesheet for the TinyMCE editor? Modification doesn't show immediately but they will be cached in the admin ...
0
votes
0answers
59 views

Unregister default admin styles from specific admin page

I'm trying the following code in theme's function.php: function mypage_remove_scripts() { wp_deregister_style( 'wp-admin' ); } add_action( 'mypage', 'mypage_remove_scripts' ); But that doesn't ...
-1
votes
2answers
2k views

Style product detail page with custom CSS in woocommerce

I am trying to style a single product page with custom CSS in WooCommerce. I managed to get the categories styled with the conditional tag is_product_category in my header file and an php IF ...
2
votes
5answers
2k views

WordPress & W3C CSS Validation

I've played around with WordPress here and there for a few years and am wondering about problems with CSS validation with WordPress themes. This may seems like a stupid question, but: Is there a ...
0
votes
1answer
105 views

Ordering stylesheet above <style> using functions.php

I'm loading a stylesheet and a style into the header using functions.php. This works but the stylesheet is being presented below the <style>. I need to order the stylesheet above the style ...
0
votes
1answer
79 views

Post interior margin in twenty eleven theme

I'm trying to customize the aspect of a single format post, in my case is "Link". I've added a different color background so they look different, editing the CSS as this: .format-link .entry-content ...
-1
votes
1answer
81 views

Integrating CSS Into a WP Function Call [closed]

Below is a code I use to display post views. It is integrated with an options panel which allows users to choose whether to display it. I would like to integrate the div class .postviews directly ...
0
votes
1answer
37 views

Outputting the blogposts or the_content()

On the dashboard under add pages, I have 3 section of blockquotes, under text <blockquote id="section1">first</blockquote> <blockquote id="section2">second</blockquote> ...
3
votes
2answers
4k 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 ...
0
votes
1answer
202 views

how to add custom logo to my template

So now it should be somewhere here. I still have no idea how to do it :< <div id="logo-wrap"> <?php PC_Utility::pc_display_theme_logo($options); ...
1
vote
2answers
125 views

How does a Child Theme works?

I created a child theme and installed it but I don't know how exactly it works! For example, in the parent theme I have the code below: .header { margin-top: 10px; margin-bottom: 10px; ...
0
votes
1answer
1k views

some things in child theme css not overriding parent

I am writing a child theme with Blogolife as its parent. (I'm doing it on a local server, so can't show you the actual page). I have made several changes to the CSS in the child theme's "style.css" ...
0
votes
1answer
732 views

define css class in functions.php

In my theme I use theme options to set colors to categories (heading colors, dividers colors etc etc) The way I do it is defining variables which holds a color hexa like so: $category1_color = ...
1
vote
1answer
404 views

Style category link depending on category ID

I want to style a link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink. My theme calls the category like this: <?php if (in_array('categories', ...
0
votes
1answer
277 views

Is there a good way to use CMS images with CSS

I am building a responsive wordpress theme that allows for a custom banner image to be uploaded to each page. However, because of the responsive nature of the theme I need to set the images as ...
0
votes
1answer
75 views

How to add different CSS for galleries

I use jetpack carousel for all of my galleries , even for my featured image, my question is, how do I style my [gallery] outcome to use different CSS for the featured image so I can manipulate it a ...
1
vote
1answer
2k views

Add classname to the_category() function?

is it possible to use add_filter or something similar to add the slug of the category as classname to the the_category() function? Right now when using the_category() the output looks like this … ...
0
votes
1answer
43 views

Using variable to display a page with a different stylesheet

Is it possible to implement a different stylesheet for a page using a url variable, for example Normal URL: www.example.com/page Would use the normal stylesheet Alternative URL: ...
1
vote
1answer
960 views

How to add tags (custom taxonomy) to post class css?

I am trying to figure out how to add my custom taxonomy for tags to the post class css when I already have added the custom taxonomy for categories. The code Im currently using to add the category ...
1
vote
1answer
78 views

How to implement a JavaScript and CSS file for my WordPress homepage?

I saw this Javascript feature tour file today, and was curious how I would go about implementing it on the homepage of a WordPress site. Ideally, I'd like to add it so it only shows up if and only ...
0
votes
1answer
750 views

How to change the standard width of a page

How can I expand the standard width of a page in a premium theme? It seems to be fixed to 800px, and I don't know where to start.
2
votes
2answers
133 views

TwentyTwelve versioning

I'm making a child theme for TwentyTwelve, but my host is caching my files, so I'm not seeing the changes I do to my style.css file. Is there a way to version the stylesheet for my child theme? How ...
-1
votes
1answer
753 views

Creating a Horizontal menu

i'm new to creating wordpress themes and want a menu at the Top of my page. I do have the following: Header.php <html> <head> <title>Tutorial theme</title> <link ...
0
votes
2answers
134 views

Display Something in the Header After All Styles are Loaded

I'd like to include a functionality in a theme that will overwrite styles from previously included CSS files. For this purpose, I need to be able to display a <style> in the header after ALL ...