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

How to add an active state class to my info box

I built my wordpress site with wp bakery page builder. I created a menu of info boxes that have an element ID that it links to (links to an html block within the page). I want to style the active ...
  • 3
0 votes
1 answer
21 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-...
0 votes
1 answer
17 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 ...
0 votes
1 answer
27 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 ...
  • 111
0 votes
0 answers
17 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 ...
  • 101
0 votes
0 answers
19 views

Content doesn't fit on large size desktops like 2560x1440

so recently I've made my website fully responsible, anyways on resolutions like 2560x1440 the content is fixed in the size of 1920x1080 and doesnt fit to screens that are bigger. How can I make this ...
  • 1
0 votes
0 answers
27 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 ...
0 votes
0 answers
32 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 ...
0 votes
1 answer
16 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 ...
0 votes
1 answer
39 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?
0 votes
1 answer
35 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 ...
0 votes
1 answer
17 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 ...
0 votes
0 answers
15 views

Using Featured Image as Hero Background in Word Press

I have the Author Cats theme in Word Press (kimcoxauthor.com). I had hoped they would add this feature for the book pages in a future update since I bought a lifetime license for all updates but it's ...
  • 1
1 vote
0 answers
25 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 ...
  • 225
0 votes
0 answers
9 views

Hiding Widget On Mobile Devices Removes Our Product Search Box On Mobiles

We have a live search product bar on our website, which sits in the right hand sidebar on desktop versions, and we have some custom css which places it at the top on mobile devices, as it would ...
0 votes
0 answers
14 views

How to create A - Z List with pictures?

I need to create an A to Z list with pictures of the players profile pictures I know there is A to Z plugins, I did do some research and the A to Z list, created links. I need something like this I ...
1 vote
0 answers
12 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, ...
0 votes
1 answer
55 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 ...
0 votes
0 answers
18 views

Layout totally broken

the layout of my site totally jumped when I added a new page, automatically integrated into the menu. Even if I remove this page or play with the previous changes on each page, I can't get it back. ...
0 votes
1 answer
40 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 ...
0 votes
0 answers
11 views

How to hide my categories pages' names, and how as well to reduce the space beween my sidebar's widgets?

I'm currently building my own website using Wordpress as well as the Astra theme (free version). I've been encountering two main issues to which I still haven't found any solution yet : first of all, ...
-1 votes
1 answer
52 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",...
1 vote
2 answers
41 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 ....
  • 11
0 votes
2 answers
23 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 ...
0 votes
1 answer
52 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() ...
2 votes
1 answer
103 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 ...
  • 123
0 votes
2 answers
76 views

How enqueue CSS out of theme folder?

How we can enqueue a stylesheet out of theme folder? Example: wp-content > cssfile.css
  • 9
0 votes
1 answer
12 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 -> ...
  • 101
0 votes
0 answers
18 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 ...
-1 votes
1 answer
38 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 ...
1 vote
3 answers
27 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 ...
  • 111
1 vote
1 answer
40 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' ...
0 votes
0 answers
39 views

Woocommerce Product Page Collapsible Box Using CSS

I have a product page and the product itself has multiple components that serve as add-ons and these are in a collapsible box. Normally you click 'Add-ons' and the box expands, showing everything you ...
0 votes
0 answers
23 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 ...
0 votes
1 answer
28 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 ...
0 votes
1 answer
23 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 ...
  • 31
0 votes
0 answers
18 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 $...
4 votes
2 answers
3k 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: ...
  • 111
0 votes
0 answers
24 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 ...
0 votes
1 answer
28 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 ...
0 votes
0 answers
10 views

How to modify submit button on GravityForms

I am working on an environment built with Elementor on Wordpress. The website is using a lot of plugins and I have to delete some in order to optimize it. Among these, I deleted Ultimate Addons for ...
0 votes
0 answers
34 views

Particle.js not loading in WordPress Gutenberg

I'm currently trying to teach myself how to design with Gutenberg (after previously only using Elementor), so I'm re-doing my website. I'm trying to have my hero section use particle.js but the ...
1 vote
0 answers
25 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 ) { // ...
0 votes
1 answer
12 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 ...
1 vote
1 answer
330 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 ...
0 votes
1 answer
33 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 ...
  • 277
0 votes
1 answer
23 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 ...
2 votes
1 answer
22 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 ...
0 votes
0 answers
26 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 ...
0 votes
2 answers
201 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 ...
  • 608

1
2 3 4 5
55