Tagged Questions

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

Is there a way to change the backround color of the native video player in wordpress?

I love the ease of adding a video to WordPress 3.9.1, however The background that shows befor the video fully loadsw is black and I would like it white. what is the name of the video player and where ...
0
votes
1answer
227 views

Making a Custom Menu Sidebar Icon show as Current in css [closed]

In the custom WP Menu I have assigned classes which are different for each menu item. For example .power-icon a { padding-left: 35px !important; background-image: url(/images/icon-grey.png); ...
0
votes
1answer
47 views

Dynamic CSS through PHP issue

I am trying to create a dynamic style.php stylesheet. The most basic function I am testing is a color picker on my theme-options. The color picker works, but my dynamic css file does not. On Chrome I ...
0
votes
2answers
47 views

I can't change the background color of a specific page

I'm trying with no luck to change the background color of just one page. I've tried adding > and then using the selector body.page-id-15 #content { background-color:#000000; } This doesn't work. ...
0
votes
2answers
29 views

De-registering a CSS file leaves it in the queue

I'm trying to de-register a CSS file that it is systematically add from a plugin. The CSS file it is useless in all pages. So I have added a simple wp_deregister_style passing the name of the CSS ...
0
votes
1answer
37 views

Change height of Add New Post input box

The textarea box on the Add New Post page is too high for my application. I'd like to change it to 260px high. However the style is embedded. What's the best way to change it, without altering the ...
0
votes
2answers
113 views

Custom css per category and per single post belong in each category

the condition is: there's a wordpress site that has 8 categories, and each category has sub-category, and each subcategory has several posts (and still will be updating/counting) : Category A - 8 ...
0
votes
0answers
9 views

styling text from the editor

I have created several template files that style, position and display content from posts and several custom post types. What I can't get my head around is how to position and style the text that a ...
0
votes
0answers
63 views

Issue with hide and display horizontal scroll accoucement bar

I am using horizontal-scrolling-announcement plugin to announce a news bellow the header.I have added some custom code to hide and display scrolling news announcement at one event if the admin change ...
0
votes
1answer
86 views

How to save the output of php variables used in inline css code to the main style.css?

I have some PHP variables that each represent some user settings set via a theme options interface such as: theme colors typography etc. All these variables are in a file called dynamic-style.php: ...
0
votes
0answers
11 views

Right to left problems after uploading the site

I have been working on a WordPress site on my local host. Every things was working fine for my right to left language (Arabic). but after I have uploaded the site to the web-hosting server I noticed ...
0
votes
1answer
41 views

Disable child theme css on certain pages

I have activated child theme and would need to completely disable the child theme css on certain pages, leaving only the parent theme css. How can this be done?
0
votes
1answer
17 views

Large Unwanted Space at the Bottom of Blog Posts [closed]

I'm a bit stumped as the why there is such a large space at the bottom of the blog posts. I've tried removing the "more" tag, I've inspected the element multiple times, but just cant seem to get rid ...
0
votes
1answer
17 views

Using css class selectors on a specifc page [closed]

I'm trying to position images next to several bullet lists in such a way the global default doesn't achieve so in my style.css file for the child theme I have my selector as .activities img{ code ...
0
votes
3answers
116 views

How to add 10 different css class to posts

How I can assign a different css class to each post of the 10 posts of each blog page? Like this : <li class="first-post">.. <li class="second-post">.. . . . <li ...
0
votes
0answers
81 views

Like/Dislike Bar not working when updating

I'm trying to integrate Like/Dislike Bar in a Wordpress plugin . It Works Properly when total page reload/refresh . But whentime Like/Dislike Bar refresh from ajax that time its not working . This is ...
-1
votes
3answers
451 views

How do I remove specific styles from the parent theme css using the child theme css?

There are some styles in my parent theme that I would simply remove from the stylesheet if I was not using a child theme. Obviously, I do not want to remove them from the parent css, but is there a ...
0
votes
1answer
152 views

Theme: Twenty Thirteen Mobile Sliding Menu Doesn't Bump Content Down

I have created a child theme for Twenty-Thirteen and somewhere while editing it I broke the mobile menu slider as it no longer pushes the content down and instead displays behind the content. I've ...
0
votes
1answer
25 views

Custom styling Insert Media window

I would like to alter the styling of the Insert Media window. I'm sure the styling is at wp-includes > css > media-views.min.css I can't alter the minified file. Does anyone know where or how ...
0
votes
1answer
142 views

html mail sended with wp_mail shows plain

I have a invoice.html that i want to send i use the following function to replace some things in the html foreach($variables as $key => $value){ $template = str_replace('{{ '.$key.' }}', ...
0
votes
1answer
239 views

Which Details Are Required For Style.css File Header?

Which theme details are absolutely required for your style.css file header? I'm developing my first theme for personal use, so do I really have to include things like a license, license uri, author, ...
0
votes
0answers
91 views

Revision History for Entire Wordpress Site

I am learning wordpress and am working on a wordpress site where I would like to have a revision history for every single change I make. I understand you can see the revision history for pages and ...
0
votes
2answers
75 views

post_class not working with css

through the codex I read about how to use the post_class() function to create a css hook for styling the content. Here is the code I have, PHP: <li class="<?php post_class();?>"> ...
1
vote
1answer
200 views

Add external css to Contact Page

I am trying to add custom CSS to my contact form in wordpress which is a wp page which loads at mysite.com/contact. I don't want to edit any existing codes, I want to do this writing a simple plugin. ...
3
votes
2answers
111 views

Adding a class to the body_class function

Basically I've applied this way to show certain colors on pages like search.php or a list on home. What it does is it reads a variable that gets a field from WP, if that field is equal to a certain ...
0
votes
1answer
492 views

Theme Customizer - Dynamic CSS PHP File

I've recently switched over from using a custom class to enable a theme options panel to the built in Theme Customizer in Wordpress. All is going fairly well - I've got live preview working but I'm a ...
0
votes
0answers
68 views

Why does my css file keep caching on wp-multisite?

I am quite a newbie in web design and I hope someone can solve this problem for me, I have also tried wordpress forum but can't find the answer. I have a multisite (sub domain) with a strange caching ...
0
votes
0answers
47 views

How to automatically trigger a link if user has already been in the page?

I need a solution in php or javascript to make trigger a link to a internal #anchor when the user has visited the page for second time. can you help? the theme is a SINGLE PAGE one that shows all the ...
0
votes
1answer
57 views

Possible jquery / library conflict in plugin usage

I am using the free version of the plugin: WP Feedback & Survey Manager but for some reasons the tab style is not rendered, and I guess it's for a javascript/jquery problem, eventhough I don't ...
0
votes
1answer
55 views

Split Media Queries in different files!

I woke up this morning with a thought. Is it a good idea to split the different media queries in different files, check the width of the page in functions.php and then with an IF call the "correct" ...
0
votes
1answer
113 views

current_page_item is missing inside wp_nav_menu

I'm using the function wp_nav_menu like this: <?php wp_nav_menu( array( 'container' => false, 'echo' => true, ...
1
vote
0answers
78 views

show count is out of the anchor tag in wp_list_categories

I'm using wp_list_categories with 'show_count' enabled on that, i styled my <a> tag, but the category count doesn't show up under anchor tag.(it's under li) $args = array( ...
0
votes
0answers
36 views

Which hook to use to add notification message at beginning of my <body>

i want to add dynamic messages to the beginning of my but I can't figure what hook to use. I have tried get_header but i can't append content to it... any idea? I don't want a solution that requires ...
0
votes
2answers
134 views

Managing large CSS files [closed]

I am creating a theme but find the CSS file too long, would it be acceptable to split the CSS file into several so a typograhy.css buttons.css table.css or would that reduce performance and cause ...
1
vote
2answers
30 views

How to style the post previews/links without it affecting the main posts?

I am a beginner but have spent a lot of time in trying to figure this out and to no avail. Using the developer tool in Chrome I have tried to find a particular class that's unique to the posts that ...
0
votes
2answers
596 views

Remove Genericons Helper CSS from twentyfourteen theme

I'd like to remove the genericons-css styles loaded by default into twentyfourteen theme. <link rel='stylesheet' id='genericons-css' ...
1
vote
0answers
33 views

t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor

I am running a development site with the WordPress beta plugin, currently running 3.9 beta 3 I am using Bill Erickson's Core functionality plugin which calls Toscho's t5-fresh-editor-stylesheets.php ...
1
vote
1answer
18 views

Correct check for any admin page with editor

I have read the codex, but found it a bit incomplete. I like to load stuff only on pages where the post editor is visible. This should include custom post types and everything. I am a bit insure ...
1
vote
2answers
159 views

WordPress Displaying Thumbnails Vertically

WordPress is displaying my thumbnails vertically and VERY LARGE. Specifically it's displaying WooCommerce product page thumbnails vertically and VERY LARGE. Can't seem to figure out why or what piece ...
0
votes
2answers
41 views

Seperate functions.php for part of site

I built a custom WordPress site for some artists. I'm making one page that is entirely different from the rest of the site. Actually, that and a single.php page. It's for a specific new book, and the ...
2
votes
1answer
28 views

Is it possible to change the path of a css file that is registered through wp_enqueue_style()?

The theme I am using already calls the wp_enqueue_style function to enqueue a css file. I want to whether it is possible to change the css file path before it is actually outputted on the page. Why ...
0
votes
2answers
247 views

Remove id attribute from stylesheet link

Right now I'm serving up my own custom stylesheet. // register main stylesheet wp_register_style( 'custom-stylesheet', get_stylesheet_directory_uri() . '/library/css/main.css', array(), '', 'all' ); ...
0
votes
0answers
59 views

Special characters showing in fallback font

I have created a widget that displays some text using a custom font imported with CSS @font-face. The font have support for scandinavian characters åäö, but when I display these characters in my ...
0
votes
1answer
89 views

Wordpress crop image not working [closed]

I have the following CSS: .crop { height: 40px; overflow: hidden; margin-bottom: 20px; } to crop an image when the screen shrinks. It works in a normal HTML file, but in Wordpress, the ...
1
vote
0answers
49 views

How to remove default style of header in wordpress metabox

I have the problem which when I create a header in my wordpress plugin metabox, it always apply the default style on my header: even when I apply, my own style, <h3 style="background-color: ...
0
votes
1answer
254 views

Drop Down menu expanded by default (on front page) [closed]

For this site users seem to have difficulty finding the site's content that is accessible through the 'Data' drop down menu on the top left. To improve this I would like to have this drop down menu ...
0
votes
2answers
52 views

PHP in CSS file?

so I have this in my CSS ... #mainnav li:after { content: url('images/nav-divider.png'); } obviously I need to have it link to 'bloginfo('template_directory'); /images/nav-divider.png' instead ...
0
votes
2answers
116 views

Make the css of the widget overwrite theme css

I have created a widget that creates forms. I am using the Twitter Bootstrap framework in order to style those forms. I have two instances of WP: One is using the Alterna theme, which uses ...
1
vote
0answers
21 views

Wordpress template css does not load over http but does over https [closed]

My Wordpress template "The7" from themeforest.com css does not load over http but does over https. No caching or any other optimization is enabled in the server nor any related plugins are active. I ...
0
votes
4answers
130 views

Finding and disabling 'rogue' stylesheet from header: Source Sans Pro

I just recently set up a local WordPress development environment and imported the content from the live site into it using WordPress' built-in export and import functionality. Unfortunately, this ...