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

Color Picker - Theme options

I've been creating a Theme off my own back just teaching myself about the in's and out's of wordpress API. Firstly this place has been of great use to me! Now for the question, recently just ...
0
votes
2answers
73 views

Hide a Menu Item on Login

I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in. .hide-item-not-login{ display: none !important; } .logged-in ...
1
vote
1answer
81 views

Deregister CSS style file from WP footer

When user is logged in WP add in its footer this CSS: <link rel='stylesheet' id='open-sans-css' href='//fonts.googleapis.com/css?family=Open+Sans....' type='text/css' media='all' /> That ...
0
votes
0answers
14 views

how to get 100% height in wordpress admin panel

I am working on a custom admin panel for my plugin, and I am never getting 100% height no matter what I do. here is the css i used #container { margin-top: 20px; height: 100% !important; ...
0
votes
1answer
22 views

Style Switching

Any tips or tricks on how to get a website to show a different stylesheet when you click on a menu item? What I want is one link to load a green css style and the other links keep the default style ...
0
votes
0answers
56 views

Why are my parent styles loading after my child styles?

I am trying to build a child theme that uses SCSS. However, every time I make changes and recompile my stylesheet, it gets overridden by the parent stylesheet. This is because, in the head of my site, ...
0
votes
1answer
21 views

Child Theme Changes Are Not Reflecting In Parent Theme

So I've recently moved my Wordpress.com blog to Wordpress.org. I was using a Child theme via a Plugin and changed a bunch of the CSS, but when looking at the parent theme, nothing ever changed. No ...
0
votes
1answer
116 views

How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]

Almost all of my CSS and JS resources can be postponed with an ASYNC or DEFER tag added to the resource. This may improve performance of my page load times considerably. However, I don't know how to ...
0
votes
2answers
19 views

How to use scss in wordpress theme?

What is the easiest way to use scss? i Tried the wp-scss plugin but it doesnt seems to work for me: In my theme: root: css -> style.css scss -> style.scss settings for scss and css location ...
0
votes
1answer
35 views

Why isn't my link attribute getting my css?

<link rel="stylesheet" type="text/css" href="style.css" /> That is the line I am using. The style.css file is in the same directory as the file I am running that from. Tt specifically just ...
3
votes
1answer
37 views

Hiding certain panels in dashboard

I want to hide certain panels in the dashboard, for example the Excerpt panel. This metabox has an id of postexcerpt. Is it a good idea to simply add some CSS rule like #postexcerpt { display: none } ...
-1
votes
1answer
26 views

Menu is not styled properly and footer as well [closed]

Here I want to remove bullets that is before the menu. Here is my wordpress code for that menu : <ul class="templatemo_menu"> <li> <?php wp_nav_menu( array( ...
0
votes
0answers
21 views

Random text changing to weird icons in both admin & front end

Has any body had this sort of problem before. The text mainly in input field descriptions turns to weird icons see image. I have deactivated all plugins and changed themes several times but same ...
0
votes
2answers
45 views

Overwriting forced wordpress CSS styles [closed]

I was thinking of putting this on the wordpress stackexchange site but it has to do more with CSS then Wordpress. However unless I have to go into some plugin css files to customize the css then I ...
0
votes
1answer
26 views

Wordpress address URL and bloginfo

I have updated my Wordpress Address (URL) and Site Address (URL) to be https:// in the General Settings of Wordpress as I have added a secruity certificate to the hosting. Should the css url ...
2
votes
1answer
52 views

Limit function to specific post category

I have a function that wraps images in a custom div. It's placed in functions.php and modifies all posts. I'd like to know if there's a way to only apply it to posts in a certain category. Here's ...
0
votes
1answer
51 views

User gets access denied to css files and js files even though user is logged in [closed]

We are using wordpress as a intranet, we have the AD Integration plugin. Everything is working fine except for one user. Now there is no difference in settings on his machine or user profile or AD ...
0
votes
1answer
87 views

CSS styling of native (inbuilt) wordpress thumbnails [closed]

I really hope someone will be able to help me with this as it should be really simple but I am struggling! I am working on the 'native' or inbuilt wordpress thumbnail gallery (not a plugin). I want ...
0
votes
1answer
43 views

Simple/basic use of get_current_screen

I would like to load a stylesheet on only 3 admin pages: post.php?post=7&action=edit post.php?post=10&action=edit post.php?post=18&action=edit I was trying with admin_enqueue_script ...
0
votes
1answer
29 views

Is it possible to be more page/post specific with admin_enqueue_script?

I am using this code to load a stylesheet in the admin, but only on post.php related pages: function my_enqueue_for_post_pages_only($hook) { if( 'post.php' != $hook ) return; ...
4
votes
2answers
56 views

How to edit an existing WordPress theme? [closed]

I've been hired to modify/update/change an existing WordPress theme. The site is already live, and I'm wondering how to work on the theme locally first.
0
votes
2answers
133 views

How to use my style.css file outside of wordpress subdomain?

I am building a wordpress theme from scratch on a subdomain and I want to use the same CSS files across my entire site. My problem is linking my wordpress PHP files (which are on the subdomain) to my ...
0
votes
1answer
204 views

Make a vertical dynamic list of posts in alphabetically order and in columns [closed]

I have a page that lists all the posts from a given category of an custom post type dynamically. I do this with a plugin that list posts and a shortcod and with css i created 9 columns where they are ...
0
votes
1answer
89 views

Active menu item / category

I was wondering if there's any way to discover which categories are "active" on a category archive page. This is for the purpose of menu highlighting. To demonstrate, compare these: (1) Parent ...
0
votes
2answers
52 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
36 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
41 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
1answer
47 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 ...
1
vote
1answer
63 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
39 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
68 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
4answers
172 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
0answers
76 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
1answer
103 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
vote
1answer
86 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
36 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
73 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
49 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
39 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
2answers
97 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
0answers
27 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
0answers
52 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
votes
2answers
138 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
0answers
80 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 ...
1
vote
1answer
59 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( ...
-2
votes
1answer
55 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
87 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
49 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
105 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 ...
0
votes
3answers
1k 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 ...