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
2 answers
132 views

Different background colors for posts with Wordpress

I have a question. Right now I displayed my posts in the next way: Title and under it a short description of that post(everything centered and the post is looking like a card). My client wants each ...
andei95's user avatar
0 votes
1 answer
13 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
Dewruwan's user avatar
1 vote
2 answers
400 views

Completely Disable Wordpress RSS Feeds

There are loads of articles out there on how to completely disable Wordpress RSS feeds, my configuration (functions.php) is: function disable_feed() { wp_die( 'You Died' , 200 ); } add_action('...
David Adams's user avatar
1 vote
0 answers
179 views

Load CSS before Theme CSS

I have a stylesheet I want to load first in the head before other plugins load css or theme css. For some reason priority is not working for me. Any idea how I can achieve this? I need to use ...
Ads's user avatar
  • 11
0 votes
0 answers
17 views

Divi CSS Flex/Margin Error

Coming here since I am out of ideas for debugging. https://www.biographic.com/the-tale-of-the-trojan-trout/ Starting at 2193px this row shifts from where it originally sits to almost one column over. ...
sallycakes's user avatar
0 votes
2 answers
922 views

How to remove parent style.css from the header

in a child theme of WP theme "twenty-twenty-one" I like to remove the original style.css of the parent theme - based in the link-tag id='twenty-twenty-one-style-css' - from the header. Here ...
FDue's user avatar
  • 1
0 votes
0 answers
19 views

Image modification

I am a beginner at CSS. I have followed Airbnb clone challenge. I believe that I follow everything the instructor does. Here is my problem. I added an image from my wix website. And, I added layout, ...
Laavuhunter's user avatar
1 vote
0 answers
124 views

How to check if a WordPress core block is active in sidebar

I have a widget area and I want to enqueue a stylesheet only if a core block is active in it. I tried the following code: // if has audio block. if (has_block('audio')) { wp_enqueue_style('audio-...
Zeddy Emy's user avatar
0 votes
0 answers
10 views

Turn off display for custom sidebar post widget when on the post it's displaying

Hope my title makes sense, I've attached a picture for what I mean. I'm trying to use a simple bit of CSS. body.page-id-60748, .widget_its-single-post { display: none !important; }
Bennetts Design's user avatar
1 vote
1 answer
198 views

Media library style not loading correctly when selecting a page featured image?

I'm trying to set a featured image to some pages, so when I press select featured images the media library upload UI not loading correctly its own stylesheet ( get images and search are working ...
Ra3d K's user avatar
  • 21
0 votes
1 answer
45 views

JS button animation for ajax the WordPress style

I'm creating a backend ajax functionality form, and I'd like it to stay within the WordPress style. There is a small spinning circle animation that appears on certain forms, like when you try to ...
John Dee's user avatar
  • 503
0 votes
1 answer
17 views

I have a wordpress website which uses a really weird font on Opera. What do I need to do to fix it?

I have a website which gets this font: when shown in Opera. Other websites work just fine and that very website works just fine in Firefox and Chrome. Is there something improperly setup in my ...
Alexis Wilke's user avatar
0 votes
1 answer
40 views

Why my theme's css not working on another site

I work on my on theme based on Neve theme. First I had problem with scripts, because not working but i had to change their location from footer.php to header.php to everything was good. New some ...
kamil danilski's user avatar
0 votes
1 answer
38 views

How do I use wp_nav_menu?

I try to add dynamically a menu which structure of css ul/li link look like that <ul class="navbar-nav ml-auto"> <li class="nav-item"> ...
kamil danilski's user avatar
1 vote
0 answers
51 views

Load in wp admin assets from child theme

I started to create a child theme from a BoldThemes theme with custom icons. I am able to see icons when edit directly page, but when try to edit page from wp admin, I've this issue I discovered ...
salsan's user avatar
  • 121
0 votes
2 answers
41 views

Correct Way To Make Changes To A Wordpress Theme

I'm just getting started with WordPress development and trying to understand the correct way to change small elements within a page such as Woocommerce: How to remove page title from storefront theme ...
Adam's user avatar
  • 103
0 votes
0 answers
190 views

Is there any way we can restore the "Additional CSS" after being erased?

My additional CSS got erased. how do I get that back?
Sudhir Singh's user avatar
1 vote
1 answer
28 views

Layout using Bootstrap not aligning correctly

I have been stuck at a strange layout alignment issue. I have been using Bootstrap 4 to set layout of a section. Please take a look at the screenshot below - This is here. It is working as expected. ...
Divjot Singh's user avatar
2 votes
1 answer
1k views

Enqueue styles in new site editor in WordPress 5.9

In the block editor for posts and pages, I used to use the enqueue_block_editor_assets hook to enqueue styles for the block. add_action( 'enqueue_block_editor_assets','load_assets_in_block' ); ...
Sanzeeb Aryal's user avatar
0 votes
1 answer
48 views

Elementor - Edit Global Colors Order

I'm trying to change the order of the Elementor global colors list. This question was originally posted here, and while the instructions are thorough, I can't find the elementor_page_settings in the ...
IMTanuki's user avatar
0 votes
0 answers
58 views

the_post layout

I'm getting stucked with the layout of the_post function. I would love to have two post thumbnails per row and above the thumbnails the description, title, category of the post. If I use flex property ...
Jettolo's user avatar
  • 11
0 votes
0 answers
29 views

WordPress plugin development theme issue

Developed the WordPress plugin using https://materializecss.com/ framework , Once plugin activated it will automatically create 4 pages in WordPress. Here I'm facing one issue with WordPress multiple ...
Prasanna Kumar's user avatar
0 votes
1 answer
51 views

How to make a function to play only on the home page?

How can I make the 2 functions setTimeOut that are showing the element with id="mess" and then hiding it, run only on the home page, so that if the user goes to another page, it doesnt run ...
Simeon Nenov's user avatar
0 votes
1 answer
327 views

How can I avoid conflicts between plugin and theme?

I'm developing a widget for wp elementor as a plugin. Now my widget front view css and the theme front view css are in conflict. Right now as a developer how can I avoid wp plugin front view css and ...
FERDAUSSK 01's user avatar
0 votes
1 answer
59 views

How to upload and style svg logo?

WP beginner here. I'm trying to upload an svg logo to my site. The logo can be accessed here. If you open it in the browser and inspect it, it should show the svg tags around the object. I've ...
Artur Müller Romanov's user avatar
0 votes
0 answers
17 views

Background image no longer fits to screen now that project is in php files

When my project was still coded as html files, the background images of my sections of my landing page fit the screen, but since changing it to php files to upload to wordpress these sections leave ...
Sally123's user avatar
0 votes
1 answer
77 views

How to add Custom Css within the Editor?

I've been struggling for a while with this one. I am trying to target an element within a column or block, in this case the 'Submit' button of a WPForm. So I open the developer tools in Firefox, ...
Sy Ker's user avatar
  • 101
0 votes
0 answers
277 views

Css will not display in webpage, after adding it in style.css in child theme

I have just started using wordpress again, after a long delay and cannot remember if I am putting the css in the child theme correctly. I placed a tiny piece of css code to display. I have put it in ...
Spencer Halstead's user avatar
0 votes
1 answer
190 views

How to Edit the Order of Global Colors in Elementor? [closed]

I looked all over for a solution to changing the order of the global colors in Elementor, but didn't find one. People have asked how to do this both in Elementor's forum as well as reddit and a few ...
Pegues's user avatar
  • 157
0 votes
1 answer
361 views

Correct way to enqueue page specific CSS file

I am looking for an alternate way than using functions.php and applying conditionals based on each page's ID, instead I would like to enqueue the CSS right at the top of each page like this: <?php ...
Raging Vids's user avatar
0 votes
1 answer
241 views

How to hide "Shipping" label from Woocommerce cart page

I am trying to hide/unset Woocommerce "Shipping"label from the cart page in order to have more width for the shipping calculator. Is there any way to hide only the word "Shipping"...
gerson almeida's user avatar
0 votes
1 answer
79 views

Hide Tab Titles from Tabs Block

I have this Tab on my website-- https://prntscr.com/1zii0ab On Mobile, I will like to hide the Titles of 3 of the Tabs, and on Tablet I will like to hide the Titles of 2 of the Tabs. When I used ...
Gamicord's user avatar
  • 111
0 votes
1 answer
85 views

Unstable handling of CSS under WordPress/Elementor

I run a small website (www.binnenstadduurzaam.nl) using Elementor Pro and OceanWP, and have a parallel test site test.binnenstadduurzaam.nl, which is the same as the www site except when I am testing ...
NL_Derek's user avatar
  • 101
0 votes
1 answer
128 views

Add css class to string

I'm trying to add css classes, so that each status (active, pending, canceled) has its own css class on the frontend. Please help. function rcp_get_status_label( $status = '' ) { static $labels = ...
Mr Silver's user avatar
0 votes
1 answer
193 views

How to add a CSS class to this php code [closed]

How can I add a CSS class to "هر متر طول" in this php code: add_filter( 'woocommerce_get_price_html', 'themefars_text_after_price' ); function themefars_text_after_price($price){ global $...
Jabbarpour's user avatar
0 votes
2 answers
373 views

Wrapping a Sidebar within <div></div>

I ask if it is possible to wrap a specific sidebar within a <div class="customdiv"></div>. Are there any instructions to add in the function.php file? Thank you. Like this: I've ...
Filippo's user avatar
0 votes
0 answers
373 views

category description not showing in my woocommerce

I want to show the category description on my categories pages but I can't access the category.php file and I am using too many plugins already, I don't want to use one more plugin for this. Please ...
hamza sheikh's user avatar
0 votes
1 answer
34 views

Why would the child theme load in the Customize preview, but not on the site itself?

I have my child theme folder, the style.css sheet with the required template comment and some custom css, and I have the functions.php page with the required enqueing code. Everything seems to be in ...
Benjamin Jex's user avatar
0 votes
1 answer
32 views

custom template display 3 columns

I create a custom template this the code and I want in result 3 columns and the side bar on the right. I try with css something like that .grid-container{ display: grid; grid-template-columns: ...
g rom's user avatar
  • 1
0 votes
0 answers
192 views

Advanced method to control cache of enqueued style/script

I have a WordPress website with medium-level traffic, ~10,000 unique visitors a day. Arround 30% of my daily visitors are recurrent. I constantly make some UI improvements: colors, font-size, ...
Alexandro Giles's user avatar
0 votes
3 answers
263 views

Use of CSS classes in editor-blocks.css file

Checking the editor-blocks.css file found in some themes, I see the following CSS classes added before some of the individual block classes: .edit-post-visual-editor .editor-block-list__layout .editor-...
leemon's user avatar
  • 1,898
0 votes
0 answers
174 views

Menu not closing after clicking - Wordpress - Elementor

my primary menu isn't closing after clicking the link I wanted to visit. After clicking the link that I wanted to visit, redirects me to the page, but the dropdown menu stills there I'm using ...
Rares-Andrei Panait's user avatar
0 votes
0 answers
83 views

How can I make a thumbnail slider

I was able to create a slider for the main image. How can I create a slider for thumbnails ? I don't know what to do about it Thanks in advance Link to Single Product Page functions.php function ...
Ferhat's user avatar
  • 15
0 votes
1 answer
423 views

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

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 ...
Kevin Kenan's user avatar
0 votes
1 answer
478 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 ); ...
Andrew's user avatar
  • 1
0 votes
1 answer
92 views

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

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 ...
Richard Grahn's user avatar
0 votes
0 answers
72 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’...
chrisova's user avatar
0 votes
0 answers
101 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 (...
1NN's user avatar
  • 125
1 vote
0 answers
8 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 ...
IneptusMechanicus's user avatar
0 votes
1 answer
169 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 ...
Webman's user avatar
  • 63

1
3 4
5
6 7
57