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
1 answer
554 views

Website is not showing updated CSS

I have an issue with my website not updating when I make edits to my CSS file. I believe it's sass CSS, and think something may not be linked where it should be. I use SiteGround to edit my code (File ...
Ryan D'Orazio's user avatar
1 vote
2 answers
784 views

Is there a way to add background-image to theme.json?

I thought the following would work, but it doesn't. I can't find a firm confirmation if Gutenberg allows the following: "styles": { "color": { "backgroundImage": "...
Marc P's user avatar
  • 513
0 votes
1 answer
42 views

Modifying posts based on category in TwentyTwentyTwo theme

This is quite a starter question. I want to change the style of all the posts in the "photos" category by adding custom CSS to the style.css file of my child theme. However, I cannot find any ...
Klosmi's user avatar
  • 1
0 votes
0 answers
98 views

Align images to the left of the content

I am using WordPress 6.2 and the Twenty Twenty-Three theme. I am using a local version of WordPress so I am able to edit the style.css and other files. How can I make the left-aligned image blocks ...
Arete's user avatar
  • 308
0 votes
0 answers
937 views

Custom block style not working in the editor

I'm using the following code to register a custom block style for the quote block in a child theme: function child_init() { register_block_style( 'core/quote', array( '...
leemon's user avatar
  • 1,898
0 votes
0 answers
51 views

Custom Theme Additonal CSS "<" and ">" are transformed to "&gt" and "&lt"

Im using Elementor Child Theme and in there im sometimes writing "Additional CSS" and till yesterday everyting was working correct. But since today "<" and ">" are ...
Rick H.'s user avatar
0 votes
1 answer
150 views

How to add CSS to Wordpress

I am struggling to get custom CSS to work in Wordpress. I am using version 6.1.1. I want to turn off underlining of the link in the site title when you hover over it. I am using a Twenty-twenty ...
esotechnica's user avatar
0 votes
0 answers
91 views

Image and font support missing in editor when deploying theme remotely

So I am starting to learn Wordpress development and today I uploaded my first custom theme from my local environment to the remote hosting server. My theme installed with no issues and I was ready to ...
Mike Sav's user avatar
  • 127
0 votes
1 answer
456 views

Disabling double vertical scrollbar and horizontal scrolling?

I have a WordPress site here: www.horizonimaging.co.uk and at some unknown point a month or so ago double vertical scrollbars appeared on the site. I was able to fix this (remove the second vertical ...
horizonimaging's user avatar
0 votes
1 answer
29 views

Wordpress search field won't get wider

I've tried everything I know how to get this input field to 100% but I can't seem to do it. It always stays at some stuck width. .search-field is the stock class and I've targeted that class using max-...
harshclimate's user avatar
0 votes
1 answer
121 views

Editing size of h3 tag in wordpress on a one-off basis

I have a post on my WordPress site (I'm admin) that has H1, H2, and H3 tags. I want my H3 tags for this post to more resemble my h4 tags in size. However, I don't want to break the hierarchy and just ...
Melanie Shebel's user avatar
0 votes
1 answer
299 views

How to add arbitrary custom CSS to a Wordpress Block Theme using Site Editor?

When using a Block Theme then you can use the Site Editor, accessible via: Wordpress Dashboard > Appearance > Editor. — Introduced in Wordpress 5.9 on 2022-01-25. Site Editor > Styles (right ...
porg's user avatar
  • 111
0 votes
0 answers
25 views

Styling best practices for single pages/templates

What's the best practice for CSS that is specific to one PHP file? For example, let's say I make a page page-456.php that is styled differently from the rest of the site, what's the best practice to ...
Coopero's user avatar
  • 101
0 votes
0 answers
238 views

Add custom styles to the Raft theme

It seems that in WP6.1+ and the raft theme it's become much harder to customize styles. The footer has custom wp tags ala "wp-social-link" but in trying to override list-style-type in order ...
meder omuraliev's user avatar
0 votes
0 answers
581 views

How to hide button with CSS class?

I have two filter buttons appearing on my new version of HUSKY plugin. One button is from old WOOF filter plugin with the name "Filter" on it, the other also named FILTER. And the other from ...
Taras Parashchuk's user avatar
0 votes
1 answer
36 views

Modal pop-up HTML code works on other sites or HTML viewers but not in the custom HTML block within a wordpress page?

I'm not the best at coding, but I've managed to create this html code of a modal pop-up which includes CSS, Javascript, and html... it works in an html viewer or anywhere else except the wordpress ...
spencerm269's user avatar
0 votes
1 answer
623 views

Customize margin between paragraphs using the Gutenberg Style editor

I'm using the new Styles editor to customize the theme. I would like to change the spacing between the paragraphs of the page and single templates. Is that possible?
lookyhooky's user avatar
0 votes
1 answer
48 views

Where did I put this one line of css?

So I'm a bit lost. There are so many places to tuck away custom css between the WordPress customizer and Elementor Pro, and I added some css to style a couple little recurring anchor tags in a file ...
Marta Telkamp's user avatar
0 votes
1 answer
339 views

Wrap post titles containing slashes on narrow viewports

I have a post title consisting of two words with a slash between. It seems that the web considers this to be one word rather than two, and it doesn’t wrap when viewed on a phone. I would like for this ...
Brett Donald's user avatar
1 vote
0 answers
34 views

Full Site Editing Non-editble global styles?

Working my way through learning FSE, I'm using this this article and wondered what to do for global styles you don't want user control over? Previous this would be controlled via style.css however, it ...
user4630's user avatar
  • 245
1 vote
0 answers
16 views

How to create a "Most Popular" & "Latest" TAB in Wordpress

On my gaming website, I upload videos to the website, which is on the homepage of the website. The problem is, that I need to add a "Most Popular" tab & "Latest Videos" tab, ...
CandyShop's user avatar
-1 votes
1 answer
2k views

Bullet points not showing in wordpress

Please I'm facing a problem with my blog, since the the bullet list points are not showing on my blogposts even though I always add them via the editor. This is a direct link to a paragraph with ...
arnodheros's user avatar
0 votes
1 answer
130 views

ACF Extended : Disable styles in front [closed]

How to disable/remove styles/css in front of the_flexible() function? I want to load them with vitejs compilation, not from WordPress basic queuing and the_flexible() function. Do you know how to ...
Antoine Greuzard's user avatar
-1 votes
1 answer
411 views

Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?

WordPress STILL loads Fonts differend from the one i defined via font-face and *{font-family}. Especially in WP-Embeds still the Font Reference -apple-system,BlinkMacSystemFont,"Segoe UI",...
gooloode's user avatar
1 vote
2 answers
151 views

Remove the main title, but only from the main page

I want to remove the main title ("KEZDŐLAP"), but only from the homepage, the 2 codes below works, except if I put the page-id code in front of them. Why might this happen? .page-id-8178 ....
Italia's user avatar
  • 11
0 votes
2 answers
60 views

inner-wrap div pushing custom table far down on page

I am working with code in a custom child-theme. My goal is to pull data from the wpdb and display it as a custom table. I have created and populated the custom wpdb table with the relevant data, and I ...
user228625's user avatar
0 votes
1 answer
72 views

wp_head not injecting css

I'm trying to inject a style.css script into my front-page.php. None of the styles load. In the tutorials, when you inspect page source, all the CSS should be there, but it simply shows the wp_head() ...
Shawn Esquivel's user avatar
2 votes
1 answer
375 views

Twenty-Twenty-Two Child Theme Mega Menu

I’ve got a limited knowledge of CSS. What I know I've learned while programming. That said, I’m working with the Twenty-Twenty-Two theme. I’m trying to add a mega-menu to my child theme. The ...
Phil Huhn's user avatar
0 votes
2 answers
329 views

How enqueue CSS out of theme folder?

How we can enqueue a stylesheet out of theme folder? Example: wp-content > cssfile.css
015ra's user avatar
  • 9
0 votes
1 answer
15 views

Styling not refreshing for old visitors on WordPress

I’m working on correcting a styling of an element on an WP-based eCommerce site. The site has both SCSS and CSS files. To make things quick, I edited the CSS via Appearance -> Customize -> ...
vishnu's user avatar
  • 101
0 votes
0 answers
30 views

Wordpress site suddenly not showing some DOM elements but mobile is fine

So today I discovered that my website's homepage https://olgupsikoloji.com is missing body elements. It is a WP site running on AWS Ubuntu and LiteSpeed with LSCache and Memcached. The issue is: Some ...
Iman B. Rad's user avatar
-1 votes
1 answer
271 views

Option value not getting updated until page refresh in WordPress

I am building my WordPress plugin. There, at first I am using a checkbox, and then updating the value from the checkbox (yes or no) in the Database. Then, from later on I am fetching the value form ...
Rajin Sharwar's user avatar
1 vote
3 answers
415 views

Insert a group block inside a list item

It seems like the only thing you can put inside a list item is text (including links), inline images, and lists. But I would like to insert a whole group of blocks inside a list item. I was able to do ...
Emmanuel's user avatar
  • 111
1 vote
1 answer
87 views

Remove / Disable default custom.css?ver=1.0.0

On my front end on every single page, I have custom.css?ver=1.0.0 loading. But it's not included anywhere in my custom-built theme. At present, I am running WordPress v6.1.1. <link rel='stylesheet' ...
Long Đẹp Trai's user avatar
0 votes
0 answers
54 views

Input is cut off in text field after a random threshold

I try now for hours to find the reason for this. I have normal text in a text field. For texting purposes, I copied the lorem ipsum dummy text in it. So no special/escape characters at all, just ...
Alika87's user avatar
0 votes
1 answer
51 views

plugin not loading my css and js

Hi I'm using the standard way to load styles and scripts within my plugin. But I have no clue why it's not working. It's not shown in the network tab nor in the <head>. Can this cause issues ...
Jan's user avatar
  • 33
0 votes
1 answer
190 views

How to add css to wp_head depending on the user role?

I think this question should have an easy answer for any developer but maybe I am wrong. As much as I think, I can not understand why this snippet does not work to add a css style to the head ...
xaifu's user avatar
  • 31
0 votes
0 answers
22 views

How to create a container in php then customise it in CSS

I am a newbie so I think i have worded this right. I am using wordpress and have an if clause to echo something about returns policy for certain items. function christmas_returns() { global $...
Otis Gazzard's user avatar
6 votes
2 answers
4k views

Dequeue classic-themes.min.css

since version 6.1, wordpress loads classic-themes.min.css on our websites and crashes all of my buttons styles. I only want to see my own styles in the frontend, so i'm dequeueing WP Styles like this: ...
emot1onz's user avatar
  • 141
0 votes
0 answers
116 views

I want to Hide CSS ID for specific user roles

I want to Hide CSS .edit-post-meta-boxes-area for specific user role (rc_author) in Post Editor. Please repair my code add_action('wp_head', 'add_css_of_current_specific_user_role'); function ...
Ramikatz's user avatar
0 votes
1 answer
103 views

CSS url rules not relative to css path in account endpoint areas. IE. subscriptions

I am using @font-face in CSS file with a relative url to font files (relative to the css file). However on the endpoints of the account page (create by woocommerce) the relative nature of the url ...
BlenderTutorials.org's user avatar
1 vote
0 answers
31 views

Sorting Problem

I tried to change the Functions.php to this code add_filter( 'terms_clauses', 'wpse247680_terms_clauses', 10, 3 ); function wpse247680_terms_clauses( $pieces, $taxonomies, $args ) { // ...
Miguel Andrade's user avatar
0 votes
1 answer
103 views

WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages

I've been trying to hide my page header from showing different WooCommerce related product pages/search. I managed to put the right CSS to hide it from main product page, but when certain category or ...
mjhalonen's user avatar
2 votes
1 answer
2k views

How do I make my block-editor styles match my front-end styles?

The Problem I'm currently working on a personal blog that pulls its styles from my style.css file. Because It's a blog, I'm also using the block editor to create blog posts, but I want the block ...
smcgregor1's user avatar
0 votes
1 answer
69 views

Narrow paragraph block aligned to left of "wrapper"

I'm using the full-site-editing feature with "layout":{ "contentSize":"1264px", "wideSize":"1264px" } set in theme.json. Now when I ...
Fanky's user avatar
  • 307
0 votes
1 answer
36 views

How to define a special character to change the style of my inline code?

Some of my Persian blog posts are about programming and naturally I have to write different commands over and over again in the sentences. In order for the font to be distinct and the direction left ...
Vahid Damanafshan's user avatar
2 votes
1 answer
35 views

how to change the colour of this background

hello friends i am new here so i want to know how to change the of color in css for this site - https://filmyworld.wiki/download-pastor-thorne-lust-of-the-flesh-2022-full-movie-720p/ i have marked ...
himansu sekhar nayak's user avatar
0 votes
0 answers
41 views

Custom HTML/CSS Theme into Wordpress - SEO considerations

When creating a custom theme that serves all content through HTML/CSS, what is the best way to improve SEO? I've created a WP theme using HTML/CSS and then adding the relevant PHP to allow WP to serve ...
NickNack0607's user avatar
0 votes
2 answers
710 views

Transparent Overlay for Gravity Forms Ajax Spinner

I am using this code to center a custom ajax spinner for gravity forms submission. The spinner is centered based on the location of the gravity forms. I would like the spinner to be always centered ...
JoaMika's user avatar
  • 668
0 votes
0 answers
595 views

adding additional css classes have no effect within block editor

I've been inserting CSS through the Customizer -> Additional CSS. Then I will add some classes within the block editor to single blocks, using the Advanced -> additional css classes field My ...
1NN's user avatar
  • 125

1 2
3
4 5
57