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.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line

How do I buid wordpress menu with auto width sub-menu items in dropdown menu without any sub-menu items sharing one line (appearing side by side).but with an automatic width for dropdown items that is ...
0
votes
1answer
19 views

How to remove image size inline style in article and include caption

I am using the following filter to remove the inline style in the image tag when used in the content editor of the ACF text field: add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 ); ...
0
votes
1answer
33 views

Change "No Comments" link to "My String" on Blog Post (Find Snippet in Code or use CSS, PHP Solution)

I'm trying to replace the standard "No Comments" link on blog posts to "Leave a Comment." I'm using the Sinatra theme. I can't find the code that creates this text. So, I'm ...
0
votes
0answers
17 views

Will WordPress updates remove Gutenberg Additional Classes?

I’m attempting to customize Gutenberg column blocks on my front page. I’ve added a custom class name to a column block using the blocks Additional CSS class feature. In my child theme style sheet, I’...
0
votes
0answers
13 views

Methodology to build advanced WordPress sites. Pro guidance needed [closed]

This might be an open-ended question and I hope someone can clarify my mind a little bit. I assume there are many pros on this site so fingers crossed. I feel pretty confident for developing basic ...
0
votes
0answers
23 views

Text color won't change [closed]

I have a custom WordPress theme. When I change the color in the block editor and preview the page the color does not update. I can alter the type size, weight, alignment, etc. but not the color. I ...
0
votes
0answers
22 views

Custom CSS in Widget editor (Gutenberg) gets stripped out

As of WP 5.8.1 (or 5.8.0) the Gutenberg Editor gets to be default even for Widgets. So I've started to create some Widgets with Gutenberg blocks. My issue is that if I add custom CSS to the blocks (...
1
vote
0answers
7 views

Add fields in customization tab to change background colours of certain classes

I'm maintaining a Wordpress theme for a website that has an annual style change. Nothing fundamental, a few images get switched out and the colour scheme changes as well. The theme uses a pallette of ...
0
votes
1answer
14 views

Change Header Image on Blog Post for Mobile View

I need to use a different header image for a specific blog post. https://staging3.ryanlawn.com/blog/ryan-lawn-tree-named-to-the-great-game-of-business-2021-all-star-team/ I have tried different CSS ...
0
votes
0answers
14 views

How to create CSS Counters for Comments (depth 5)?

I'd like to add numbering to my comments, like this: comment 1.1 reply to comment 1.2 reply to comment 1.2.1 reply to reply comment comment I'm a web pro, so I generally understand how to use CSS ...
0
votes
0answers
5 views

How can I get individual menu items to hover over in different colours? They need to relate to their specific category colour [closed]

I'm building a wordpress website with Elementor Pro, but i'm struggling to get the individual menu items to hover different colours on the top bar - the dropdown menu works fine. I can change them ...
0
votes
0answers
11 views

Removing links from Grouped products

Looking for a way to remove links to single products when they have been grouped. Ie dont want users to link back to the single description as all products are displayed on one page. Have tried ...
0
votes
1answer
19 views

wordpress - site not update after update style.css

After updating the style.css in Appearance > Theme Editor > stylesheet(style.css), I refreshed my site, then saw that the style was not applied. I've also tried clearing the browser cache and ...
-1
votes
0answers
18 views

@fontface for adding custom font is not working for WordPress

i am struggling since two days to add a custom font to Wordpress (Apercu regular and Apercu bold). web address: https://www.auramonaco.de Theme: Savoy What i did: Uploaded the fonts to savoy-child/...
0
votes
1answer
19 views

How to create a robust and logic class naming system in WordPress theme developing?

What I want to achieve is developing a theme using the best WordPress CSS standards. How to create a robust and logic class naming system based on the one that already is in use in twenties theme ? It ...
0
votes
0answers
16 views

Is there a layout to place 2 same sized images in two columns on the WordPress page?

I need to place two images on a landing page of a WordPress site as below. I don't find a suitable layout option under Flexible Content field group that fits my requirement. I believe I should be able ...
3
votes
0answers
35 views

@wordpress/create-block image url in css

how to include image URL to css "style.css" in custom block? Both these not work: background-image: url("images/imagename.png"); background-image: url("./images/imagename.png&...
0
votes
1answer
28 views

What's the default order used by Wordpress to load CSS files?

I am working with a commercial theme on which I am making some style changes. Specifically, the parent theme shows a menu which I want to modify. The code for that menu is: <div class="mobile-...
0
votes
0answers
10 views

Run function for specific user role [duplicate]

I need to run this function for specific user role shop_manager: //Editar campos de alta de producto function hide_things() { if(is_admin()){ echo '<style type="text/css"> /...
0
votes
0answers
23 views

Custom Gutenberg color classes naming convention

The default behavior for the gutenberg blocks with color pallet is: The class name is built appending ‘has-‘, followed by the class name using kebab case and ending with the context name. https://...
0
votes
1answer
23 views

NGINX+wordpress: CSS being served but not applied

Cheers fellow stackers, I kinda have to get wordpress running in a self hosted nginx environment. More or less exactly using the suggested config from NGINX wordpress doc. server { listen 443 ssl; ...
1
vote
0answers
18 views

How can I style the required field error message [closed]

As the code was provided here to show up error message in the form itself: https://wordpress.stackexchange.com/a/131924/210881 But i wanted to make the required message like shown in the image below. ...
1
vote
0answers
13 views

The wordpress website view is not rendering correctly [closed]

Please look at how my website is loading when I am in incognito mode. But when I am logged in as wp-admin, I don't have that issue. How do I fix this?
0
votes
0answers
18 views

List WordPress plugin stylesheets

I know how to find stylesheets with wp_styles, but I don't know how to find plugin's stylesheets, that are not referenced in wp_styles.
0
votes
0answers
21 views

underscores theme - sass folder structure vs smacss

I am using Undescores theme and it comes with the following default SASS folder structure I am thinking to implement SMACSS approach to handle CSS. Since SMACSS uses the following categories - Base, ...
0
votes
2answers
17 views

How to display html element and php string in the same line?

Hope someone can help me with this. This is my code: function swh_woocommerce_store_credit_shortcode() { $store_credits = swh_woocommerce_get_store_credits(); echo "<span style= '...
0
votes
0answers
15 views

Modal dialog under the backdrop

I am using Bootstrap 5 and modal is kinda tricky. Do you happen to know why the dialog is under the backdrop? I've compared the modal example on Bootstrap website and on my code. I haven't changed any ...
0
votes
0answers
24 views

Wordpress Sudden Loss of All CSS And Tons of JQuery Errors

All of a sudden all the css on the wp-admin page of a Wordpress Site that I'm providing some maintenance for dropped out. It really came out of nowhere. I'm not sure what caused it. I took some pics ...
0
votes
0answers
21 views

Adding Custom Image Upload button to uploaded image and Automatically inserted into post?

I successfully added custom image button at my classic editor with this code add_action('media_buttons', 'add_image_button'); function add_image_button() { echo '<a href="#" id="...
0
votes
0answers
21 views

styles work on the front end but not in the editor while extending a core block

I'm trying to add box shadow to the core group block. I'm using filters, since we are talking about extending a core block and not creating a block from scratch. The issue is that all works correctly ...
1
vote
1answer
56 views

No styling on fresh wordpress installation

I want to setup a wordpress page on a raspberry pie in my home (running Arch Linux ARM, nginx for routing). The installation seems to have worked and I can access the wordpress app from my laptop, ...
1
vote
1answer
14 views

Change the direction of Opening the Sub-Sub Menu in WordPress? [closed]

I was making a WordPress website and all of a sudden I ran into a problem Like I have a menu at the top and there link called "More Pages" and in it, there is a link called "useful ...
1
vote
0answers
25 views

Getting page output HTML without request (for CriticalCSS, PurgeCSS)

I work a lot with legacy website with css files which were shared across many pages which resulted in really bloated stylesheets shipping to browser. I want to do some performance tricks to avoid this ...
0
votes
0answers
18 views

Add other class content with reference class value

Hello, in my Wordpress project I have reference values that I have enclosed in yellow and red lines using custom fields (can vary; orange, purple, etc.). I want to print the same values in the other ...
-1
votes
1answer
27 views

How do I make a diagonal strikethrough on wordpress? [closed]

I'm trying to achieve the look for a discounted product and I want a diagonal strikethrough on the old price. Is this possible?
1
vote
2answers
45 views

Override All CSS with Custom CSS on a Page by Page Basis

I have a 7-page static site I built with a page builder theme, child theme and some plugins. I would like to override all CSS (theme AND plugins) with custom CSS stylesheets on a page-by-page basis. ...
0
votes
1answer
16 views

Images under 1MB are not being compressed

Images that are above 1MB get automatically compressed on upload. Images that are smaller than 1MB are added to the database in their raw form. So, if someone uploaded a 900 KB image, the post will ...
0
votes
1answer
22 views

How to use css only H2 Tag? Site is considering website title also H2 tag and changing its style as well

Below CSS is executing to website title as well (does that mean that title is also considered as H2 if yes (how to solve that), or is it good for SEO to let it be as it is. body.single-post h2 { ...
0
votes
1answer
15 views

padding not working

I want to add some space above the heading. I have added: padding-top: 200px !important; Appriciate your help to solve this issue. Also I wonder how can I add spaces (padding top/bottom) to h1,2,3,4,...
0
votes
1answer
34 views

How to make only the valid active page of a multilevel menu active with - ".nav li.current-menu-item a"?

Why, if I write - .nav li.current-menu-item a {}, then all items in the submenu of the active page will be highlighted, how can I make sure that only the really active item is highlighted? If I write ...
0
votes
1answer
38 views

Redirect Css files to https

where can i find the file responsible for calling the Css files and test if their links are http or https ? i want to test the request if https, if so it's good to go and if not change it to https in ...
0
votes
3answers
64 views

Wordpress - https : Css and Js files are not working (load on http instead of https)

i have moved my website to another server and changed the domain name, then i installed an SSL certificate, and when i change my website form http to https in wp-options and wp-config and also set a ...
0
votes
2answers
22 views

Hide Some Fields of Post Submit box

Currently i used this code to hide 1.Status 2.Visibility and 3.Published option from Publish box but these code is not working on my wordpress version 5.8..please help me to solve this problem ...
0
votes
0answers
23 views

How can I add a stylesheet to the Classic Editor page?

I want to make some style changes to the Classic Editor page itself -- not the place where you write the text of the post, but the main part of the page (such as the Categories block -- maybe I want ...
1
vote
0answers
20 views

How to change directory path of css file in a plugin? [closed]

The css file in a plugin must be called when the system is looking for the css file in a different folder. And I get css file not found error. How to change the way a css file is called in a plugin in ...
0
votes
1answer
18 views

how customise Woocommerce style of custom theme

i'm new to Woocommerce theme developing and i know some basic of Woocommerce structure , for example i can call the latest 4 item of WC or popular items and etc. but the thing made me confusing is how ...
1
vote
1answer
20 views

How to edit CSS style sheet after migrating from local

Apologies if this is a stupid question, this is my first time making a webstie. I created a child theme hosted on my computer using Local by Flywheel, edited the CSS to my satisfaction using Atom, ...
0
votes
0answers
8 views

Bootstrap Dropdown Menus not displaying the items within the dropdown

I am working on a child theme and have added Bootstrap just before the generic wp_enqueue_style of my theme to the functions.php, as it follows: ''' wp_enqueue_script( 'bootstrap_js', 'https://...
0
votes
0answers
12 views

Developing an Admin Page for a Plugin: state of the art

We need to develop an Admin Page within a WordPress Plugin. We'd like to use React as JS-Framework, because many other Plugins do the same and it works for them. However, what about the CSS? Is using ...
1
vote
1answer
25 views

Adding code to child's theme css and php cannot override certain elements

I've installed the twenty eleven theme and created a child theme based on it. I copied the entire style.css from the parent theme with all the changes I want to the child theme's css and most of the ...

1
2 3 4 5
53