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
0answers
14 views

Dynamically set background image for <li> elements using the href name

So I have a list of links which I have made to look like a Accordion. Each Accordion Element has the background image set using CSS. ul li:nth-child(1) { background-image: ...
0
votes
0answers
9 views

Styling :hover in a div [on hold]

I really stock in this styling of a hover in a div in a page id - wordpress. The function i need is to change the border color when hovering the right box with the red "Tilmeld" button here: ...
-2
votes
0answers
6 views

How to Arrange Page Contents in the Middle Height [on hold]

Using Avada theme, there is a page template with the name of Blank Page. One of the features this page template provides is automatically arranging page contents in the middle height of the page ...
0
votes
0answers
8 views

URGENT - Custom Social Button + Counter [on hold]

Need help with html + css coding for custom Social Button and Counter like the one in the picture attached.
0
votes
2answers
3k views

How do I make the sidebar bigger in twenty twelve?

I am new to WP with little knowledge of code. I am using Twenty Twelve and have managed to create a child theme (minus the header image for some reason). One of my widgets does not fit into the ...
0
votes
3answers
74 views

All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images

What I'd like to achieve is to have images resize responsively – and for that I have to set 'width: 100%' – and at the same time set a maximum width to not have the image as wide as the content. To ...
12
votes
8answers
10k views

How do you avoid caching during development?

Is there a simple way do prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my ...
0
votes
1answer
141 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
13 views

How to change the title (name) color of new custom widgets in backend

I created a few custom widgets. The following part of the code set up the title (name) and description. How can i include a class for the widget title (name) to change the color of the name that ...
0
votes
2answers
26 views

Sticky navigation and the wpadminbar

I have got a site with a sticky header navigation. The problem is that when I am logged in, the wpadminbar falls over the navigation. The code of my navigation is: <div class="container" id ...
0
votes
0answers
19 views

Programmatically choose a background-color to go with an image?

Is there a function, either in PHP or Wordpress itself, or in a plugin, that will choose a good css background-color to go with a given background-image? For example, if someone chose a very large ...
0
votes
2answers
20 views

jQuery not working when used with wordpress menu

I'm using a starter theme that was provided to me by a friend, and have successfully implemented jQuery several times on the website. I want a background image inside a div to change when the user ...
0
votes
2answers
322 views

Creating a second menu on Twenty Eleven aligned right from the first

I'm a bit new here. But I did attempt to Google this (etc.), without much luck. Basically, I'm trying to set up a second menu on Twenty Eleven that will line up to the right of the normal one (while ...
0
votes
1answer
27 views

Use special fonts on a non-hosted Wordpress blog

I would like to use a font I've paid from webtype.com on my wordpress blog. I don't own the blog so I can't change anything in the main php files as function.php or add any plugins. So, the only ...
0
votes
1answer
36 views

line-height of gist code doesn't take effect [closed]

I find Better styles for embedding GitHub Gists and add the code in my style.css. The font-size can be changed and work but the line-height doesn't take any effect though I make it 0px. Just show my ...
1
vote
1answer
24 views

How do I add Bootstrap and LESS to my migrated WordPress site?

I'm migrating a website to WordPress - it uses both Bootstrap and LESS. I found a snippet online for enabling Bootstrap and the outputted CSS via functions.php: function theme_add_bootstrap() { ...
0
votes
1answer
19 views

Corrupt Characters in CSS file [closed]

I was in the middle of trying to add WooCommerce to a WordPress installation and started having issues where my css wasn't updating. I am loading it through my functions.php like so: function ...
0
votes
1answer
26 views

Custom CSS not being added by plugin

I am attempting to add custom css through my plugin. I do have wp_head() called in my header. My code is - /** * Enqueue plugin style-file */ function prefix_add_my_stylesheet() { ...
0
votes
1answer
28 views

Conditionally load class in the comment section of the post page

I want to be able to conditionally load a class containing the word 'AUTHOR' in the comments section, next to the name of the person who was the author of the post. I know it has something to do with ...
0
votes
2answers
15 views

Hide Front-End Admin Bar Including 32 px Spacing

I have a custom template and I inserted the following snippet to get rid of the admin bar for the page: function hide_admin_bar(){ return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); ...
0
votes
2answers
108 views

Remove sticky behavior from top navigation on twenty fourteen theme?

In wordpress theme twentyfourteen, I am wondering how to remove the sticky behavior of the top navigation with a 100% width header background image like this site? I would love to have a top image ...
0
votes
0answers
27 views

Add all typography options with options tree

I'm new to WordPress theme development, and I had to create a theme with options tree. I have successfully add some options with options tree plugin in my Wordpress theme. But I am really stand when ...
0
votes
2answers
28 views

Adding a css style to the main nav menu in child pages

I have a WordPress site where I am adding a custom style to the main navigation based on whether the user is on that page. The articles section of my site has several articles within it that users can ...
0
votes
1answer
18 views

Display current category without an active link in wp_list_categories

I appreciate your time in looking into this for me. I'm using wp_list_categories tag to display a list of categories in my navigation menu and I'd like to disable the link to the current category ...
-1
votes
0answers
13 views

Is WordPress css affecting the height of an embedded object?

I am embedding the following object (it's a website) on a WordPress page: return '<object type="text/html" data="' . add_proc($proc) . '&skey=' . $sessionKey .'" style="width:100%; ...
0
votes
1answer
16 views

WordPress Twenty Fourteen Theme Sidebar

The Twenty Fourteen theme was used to create the basis of my own child theme. It's been pretty easy to override, but the left sidebar is proving difficult. I don't want to remove the sidebar ...
0
votes
1answer
25 views

Background image in posts

I'm trying to get the featured image to display in the background-image of each standard post-format post. So I'm successful in grabbing the image and was able to make it 100% of the width and height ...
0
votes
2answers
49 views

Page Template Won't Load Correct CSS File

I can't get the correct css file to load for my page template. The page is correctly loading the template but still using the default css file. This is the code I'm using to load the page template's ...
0
votes
1answer
18 views

unable to override style block within wp_head()

I am using the wpbootstrap theme based on bones. I noticed that my website had a white band along the top and I haven't been able to workout what was causing it however I have finally worked it out. ...
0
votes
2answers
19 views

Adding custom css to a theme depending on whether the admin user is logged in or not

Is it possible to add custom css to a stylesheet in a theme depending on whether the user is logged in or not? When I log in, the theme navigation and when viewing the main site bar is hidden behind ...
0
votes
0answers
20 views

Add class to menu

I want to add a css class in menu list with this code: function my_special_nav_class( $classes, $item ) { if ( has_nav_menu( 'socialmedia' ) ) { $classes[] = 'btn-social btn-outline ...
0
votes
2answers
294 views

Selectbox in admin panel function linking to CSS

I want to link the selectbox to my CSS. Like if I click an item on the list, the background of my header will change - the header's color is in the CSS. The selectbox isn't in the html but it's in ...
0
votes
0answers
18 views

Wordpress Site access from other machines on same network

I developed a Wordpress website on my local computer using 'Wamp' server. I'm now trying to put it on a local server at our work so that others can look at it / access it from their work stations. We ...
1
vote
1answer
583 views

Using PHP to toggle stylesheet and header image, set in cookie

I haven't done a lot of work with cookies or Wordpress before so I think I've been a bit over-optimistic in my quest :p I have created two themes for my site, night and day. I would like the user to ...
6
votes
1answer
2k views

How to add sub-menu to a menu generated by wp_nav_menu by using plugin

I have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
0
votes
2answers
1k views

CSS not updating in browser when I change it

I am working on the CSS of my wordpress site. When I make changes and refresh the page the changes are not reflected. When I clear the browser history and cache the changes are still reflected. When I ...
0
votes
1answer
293 views

how to 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
2answers
270 views

Wordpress image resizing on home page (product category)

I have been working on resizing the images on my wordpress website, the images are not appearing on equal sizes or not aligning properly. But inside the product pages it looks normal size but in the ...
0
votes
2answers
46 views

How to set up php,javascript and css to allow for our finished product to be displayed within a page?

hey wordpress experts, We have coded a table using php, javascript and css which pulls up information from a text file and displays it in the browser. We have everything working as desired when we ...
-1
votes
2answers
49 views

Twenty Fourteen responsive CSS

I today install on wordpress new responsive theme ''Twenty Fourteen'', I try to edit css, try to change bg color of header menu, I can't found in css where i change bg color, I before do this a ...
0
votes
1answer
241 views

Can't remove Wordpress post image height/width attributes?

I know a few people have asked this question previously; however, I think something may have changed recently in the Wordpress update. I'm building my own responsive theme for my portfolio, and for ...
0
votes
0answers
59 views

Dynamic css for a widget plugin

I have a plugin that creates a widget to show latest posts and I would like to add a dynamic css file to style the post title without using inline styles. So for example i have public function ...
0
votes
1answer
206 views

Child Theme version is set by parent theme, that isn't correct

I'm using Genesis as my theme framework, and while Genesis is at version 2.0.1, my theme is a different version (1.0). When it adds the style.css line in the header call it is appending the wrong ...
1
vote
1answer
50 views

Styling Taxonomy Terms Individually

I am trying to solve a problem and need help :) First, I have a custom grid displaying terms and images from my custom taxonomy. This is the code I'm using currently: <?php $terms = get_terms( ...
-1
votes
1answer
53 views

How to change the standard navigation menu color when using genesis [closed]

I need to change the font color for a wordpress menu. I'm currently using genesis as my parent theme & putting all of the css changes for it in a child theme. I would like to change the font color ...
-2
votes
1answer
36 views

Child-theme suddenly stopped working [closed]

I have been working on a website using the twenty twelve theme. I was modifying the footer.php and when I refreshed my website, I noticed all the extra css I had add in my child theme was not ...
0
votes
1answer
26 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
2answers
26 views

:first-child applying to all links [closed]

I am trying to remove the margin-left:10px; from the first menu item in my main navigation. I am ussing a wordpress custom navigation for my site. I have tried the :first-child method but this seems ...
0
votes
0answers
29 views

Current state to a button when on a single page

I am having trouble figuring out how to keep the current state active once on a single page of the post. For example: Recipes displays a list of all my post that are under a specific category. Once ...
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 ...