Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css]

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.

-1
votes
1answer
13 views

Issue with TABLE or DIV padding on Mobile [closed]

I have an issue on a page when viewed on a mobile device. This page (since issue has been solved this page won't be accessible any longer), when viewed on a browser looks perfect. But when I view it ...
0
votes
2answers
215 views

WordPress custom CSS file overrided by internal CSS [closed]

I have started to convert my static page to WordPress theme. While I am doing this I have a place where the position of the background image of a section has to be set with values like background-...
0
votes
1answer
19 views

Disable File Editing function

Researching fixing errors while validating my site, I got brave and clicked Enable button at Appearance > Editor and went pass the "warning" - now getting nervous bc don't want to accidentally mess ...
-2
votes
1answer
22 views

It's not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]

I am new to wordpress.I was trying to do some changes in the style.css file but something wrong I did due to which the content for all the posts in the site it start showing "[...]" after a small ...
0
votes
1answer
24 views

child theme appears again when I put the header with parent name.

My wp site suddenly showed the default theme instead of its regular child-theme. Everyhing was restored when we put the parent theme name in the header of the style.css file. But the site was running ...
0
votes
0answers
36 views

Add class for the_post_thumbnail_caption()

How can I add a class for the function the_post_thumbnail_caption()? When I check the caption in the front-end, it's just plain text, but I want to style it with CSS, so it needs a class.
0
votes
1answer
872 views

Wordpress style.css not updating, only after theme reload

I am using Bootstrap to put together a Wordpress. I update all my files locally and upload them through Sublime's SFTP. I also use Cyberduck to double check whether changes have gone through fully. ...
0
votes
0answers
29 views

Fonts are not applying

In my wordpress site, I need to use another fonts for a table, so I've downloaded it and define it in a font-face, but somehow it is not applying and giving an error in console. CSS: @font-face{ ...
0
votes
1answer
398 views

Inside a loop, how to change CSS class based on category name?

This is my first post here. I am struggling with a new situation for me, as a WP Developer. I have a loop that lists some posts. These posts can be published in different categories. I need to ...
-1
votes
1answer
20 views

How to create and add js and css file when server is not on my PC?

I have to create and add a javascript and a css file and add that to wordpress theme. problem is server is on other computer. So I can't add js and css file so simply. I know I can edit theme If i ...
0
votes
1answer
254 views

Change css for certain user roles

I am trying to do a #tribe_events_event_options{display:none;} for all the author users on my site. I don't want them to be able to set an event to featured, and I thought the simplest way was to not ...
0
votes
1answer
39 views

Why is my CSS not loading?

I have the following code on my wordpress page but none of it is being formatted by the style.css file. Everything is in a folder titles 'Web Services' that i place directly into the wp-content/themes ...
0
votes
1answer
2k views

Can you change the color of svg icons to the global color I choose from Wordpress

For example If I make svg icons that are grey and violet, when I change the global color scheme on wordpress, Is it possible to make it work so if the main color scheme was violet, and I change the ...
0
votes
2answers
22 views

Hide image on homepage [closed]

I want hide images on excerpts only on the homepage of my blog and only when the screen resolution is under 480px. Is it possible to do this ? I know I can set an CSS propriety for the width but I ...
0
votes
0answers
286 views

Child theme: wp_enqueue_style doesn't load parent style.css

I try to create a Portal child theme, as I did already for some other theme, but wp_enqueue_style method do not load the parent style.css. Here is what I did : I created a folder named portal-child ...
0
votes
2answers
23 views

Is there a way to create referable automatic numbering in image captions?

I'm setting up a wordpress site for someone who is going to be continually editing and expanding the pages. Right now we have sometimes up to 50 images per page all manually labeled "figure x.x". He ...
0
votes
2answers
810 views

Wordpress Admin Bar Covering & Overlapping Fixed Menu Header [closed]

I am having a problem with the Wordpress Admin bar covering and overlapping my fixed menu header. The theme originally did not have a fixed menu header but I edited the CSS to add one. Also, I added ...
0
votes
0answers
34 views

Option menu (dropdown) for different css classes in WordPress admin area

I am working on an exhibit area right now where there is a full screen picture with a text box describing the picture. I need to make a dropdown menu (or just a way) to display the text box in the ...
1
vote
1answer
351 views

Custom CSS In Uploads Folder

I am wondering if it is typical to have custom CSS files in the uploads folder. I have inherited a custom theme from a previous developer, and a significant amount of the styling of the front-end is ...
0
votes
2answers
201 views

Images loaded as background-image are shown but <img>s aren't

I got a weird problem: First of all I provide my folder structure: wp-content/themes/theme ├──content.php ├──footer.php ├──functions.php ├──header.php ├──home.php ├──index....
1
vote
3answers
1k views

Relative file paths in CSS when linking directly (not enqueuing)

I am creating a single-page child theme, in which (apologies to the Wordpress community) I am basically trying to stay out of using PHP or the Wordpress API as much as possible, because I really just ...
0
votes
2answers
200 views

custom css for admin only

I need custom CSS for admin. So if user is not logged in or is anything else but admin there is one CSS, and for admin only different CSS. I tried this code in functions.php: function ...
0
votes
0answers
25 views

Video Player “Width Issue”

Hello"I buy theme and when i upload video width size half see in image please help me to solve this issue & i am upload openload load movies and in theme have custom css option openload embed ...
0
votes
1answer
275 views

Parent theme styles overriding child theme CSS [closed]

I am having some trouble getting my child theme to work perfectly. I have successfully created a child theme based on the Flexia theme. I have made child themes before but not come across this issue ...
0
votes
0answers
6 views

Wordpress own theme customizer basic color layout

I've addded a controll to change the "basic color layout" of my theme, and everything worked so far. I created a select element where the user can select between a couple of colours, which will change ...
0
votes
0answers
16 views

remove the all bulk menus from posts page

i'm trying to remove all bulk actions from posts page to simplify the interface, i could hide some of the menu using the function.php of my theme using: add_filter( 'bulk_actions-' . 'edit-post', '...
1
vote
0answers
64 views

“Scattered” gallery

I'm building a theme for a portfolio-type site. I'm looking for something like this: This site uses some kind of Foundation Grid CSS to size the thumbnails using different sizes. My question is, ...
1
vote
1answer
27 views

Changing CSS FilePath for All Pages

So I need to change multiple CSS Style sheet paths for a WordPress website. They rely on a domain that is no longer going to be active. What is the best way to apply the path of these CSS file to all ...
0
votes
1answer
23 views

Post repeated when opening in overlay, how do I solve this? [closed]

I created a code following the link example: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_overlay_text The problem that opens only the first post on all buttons. How do I solve this? ...
-1
votes
2answers
37 views

Making custom pages (with an example to explain the goal)

A while back I posted a question here, What are the options for running custom css and javascript files on a page? The question is old and perhaps not specific enough to what I have in mind and what ...
0
votes
0answers
23 views

How do I change the content of an element for a theme without losing the styling?

For example the theme I am using has a built in "coin calculator" that displays live prices for cryptocurrencies to fiat. It looks like this: When I go to edit the page the code for this is just a ...
0
votes
1answer
28 views

Acessing HTML element with no specific tag on it [closed]

I need to hide the date in the following code: <div class="post-header"> March 27, 2018 <h3 class="title"> Title <h3> </div> Problem is, I need to keep the title. I ...
0
votes
1answer
11 views

Adding a class to the body of an inactive site using multisite

I am using multisite and have made inactive one of the sites. I would like a way to add a class to the body tag of inactive sites so that I can in turn, use that class to add a note for admin to see ...
0
votes
0answers
12 views

WordPress Menu Caching Issue

For this website here http://stirlandbuilding.co.uk I am developing it seems the caching for the menu may be causing issues... When going to this link you will see the current page is orange on the ...
-1
votes
1answer
15 views

Strange symbols on page [closed]

I get a ">" symbol before some of my text, even though I didn't put it there. The html source code shows it is when the ::before css is called. Have a look at nfsbiathlon.co.za at the bottom as part ...
0
votes
0answers
10 views

custom admin panel fields

I'm looking for the best way to allow the user to enter a value in a custom input field in the Admin panel that will effect the front end. For example, a field they could enter the hex in to update ...
0
votes
0answers
97 views

Bootstrap starter theme styles not working

I'm using starter theme by bootstrap for my wordpress website but when trying to use the navigation which comes with bootstrap starter theme by default, all the styles seems not to be working. There ...
0
votes
1answer
277 views

Relative path instead of absolute for wp_enqueue_script

When you enqueue scripts or styles with the following: function themeslug_enqueue_style() { wp_enqueue_style( 'core', '/style.css', false ); } add_action( 'wp_enqueue_scripts', '...
0
votes
1answer
38 views

How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?

I've seen this kind of thing on countless sites for different things. I'm sorry if I don't know the name of it, but here is an example of it: See where they have the textbox and it has their address ...
0
votes
1answer
284 views

What's the best way to add the LESS preprocessor to a WordPress theme?

I have looked for a good plugin for using LESS in a WordPress theme and the most relevant options I've found are: https://wordpress.org/plugins/bw-less-css/ (last updated 6 years ago) https://...
0
votes
0answers
20 views

Own Theme custom CSS does not display in editor but works in page

I started making my own theme. So far, everything has been working just fine. On the Main Page (Static Page) of my Blog, I created a couple of headlines with text, and i also created a div. I was ...
0
votes
1answer
20 views

Background image reversed on pages after home page [closed]

I was wondering if anyone could provide a solution in regards to the reversing of a background image which flips on every page after the home page. My website is www.michaelabetchley.com
0
votes
1answer
59 views

How can I move my custom css to the very bottom of the head section?

I have a code, which includes my custom css file to the of the template: add_action('wp_enqueue_scripts', 'add_custom_css'); function add_custom_css() { wp_enqueue_style('custom-styles', ...
-1
votes
1answer
252 views

Woocommerce align prices and texts [closed]

Is it possible to align prices and product titles in grid view. If i have a product with one line title I want its price to go lower so it aligns with the price of the 2 or more line product title. I ...
0
votes
0answers
18 views

WP Plugin CSS not being applied to page

I am making a shortcode plugin that sends a variable to a JS script. The CSS is not being applied to the page with the shortcode or any other page. Any idea to fix this, please? The CSS link does ...
0
votes
2answers
28 views

Why the css in twenteenfourteen-child theme take no effect?

I want to set margin-bottom:10px for article in http://104.223.65.117/wp/?s=emmet. Method 1: sudo cat /var/www/html/wp/wp-content/themes/twentyfourteen-child/style.css *{ font-family:"DejaVu ...
0
votes
0answers
312 views

Woocommerce Variation dropdown <select><options> doesnt allow arrow key navigation

On all my woocommerce websites. Product variation dropdowns do not allow arrow keys to navigate once selected. For example if you select an option from the dropdown. It "unselects" itself. If you ...
0
votes
0answers
24 views

Where is the css file for the “custom css” option in “personal customization”? [duplicate]

Where is the css file for the "custom css" option in "personal customization"? I'd like to edit that CSS file directly from a text editor. Where is in the WordPress file tree? Thanks,
0
votes
1answer
45 views

theme-independent CSS/JS files

So far I did the following task to add theme-dependent CSS/JS files; I added to the theme's functions.php this code, then created the relevant CSS and JS files: function my_theme_enqueue_styles() { ...
0
votes
0answers
22 views

Conditionally apply css for a specific template part

I am trying to add bootstrap.css conditionally via functions.php. I need to apply the bootstrap.css all over the website except about-us template. So in my functions.php <?php function ...