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
-2 votes
1 answer
103 views

How can I use Advanced Custom Field Option page in CSS Wordpress

enter image description here <?php header("Content-type: text/css; charset: UTF-8"); //look carefully to this line $primary_color = " get_field('primary_theme_color', 'option');&...
Mayur Tech's user avatar
0 votes
0 answers
91 views

How to avoid my tooltip text (dis)appearing below my pricing table?

Hi folks i am adding tooltips to each feature of my price table, but as you can see, a big part is hidden below the next column of my pricing table. How can i put it in front? I have tried to add z-...
user3091110's user avatar
0 votes
1 answer
229 views

Can I upload my HTML/CSS/Javascript game onto a Wordpress page?

I've written a basketball simulator game in plain HTML/CSS/Javascript. I also have a Wordpress site. Can I upload my game, so my visitors can play it? I know that if I had written my website from ...
Chakotay's user avatar
  • 103
1 vote
0 answers
340 views

How to add my theme's style to woocommerce blocks?

I have found plenty of articles on how to remove the styling from the Woocommerce blocks, but I can find nothing about how to actually use your theme's styling to replace the removed styling from the ...
Seth's user avatar
  • 11
1 vote
2 answers
280 views

Parse error: syntax error, unexpected '}' in

I'm fairly new at this, so please excuse my ignorance. I'm trying to order my posts in the site's categories with a button, 'ascending' / 'descending'. I'm trying to use 'sortit' function because that'...
gfo95's user avatar
  • 25
0 votes
1 answer
97 views

how to display custom taxonomies in front page

I have created custom post type Music which have two taxonomies Artist and Album. Now I want to display an albums table which contain all albums and display it in a page, and same for artists. Can ...
Jane's user avatar
  • 1
0 votes
1 answer
104 views

Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise

I'm designing a custom Theme using the underscores.me template. I've read several different "my css doesn't load" articles on this topic, but none seem to help w/ my issue. My own styles ...
Sylvester DeMouser's user avatar
0 votes
1 answer
454 views

Bullet List Indentation not showing up in the wordpress

In wordpress, I have written on article and in that I have bullet list to showcase but my indentation is greyed out, and not able to indent the list further as you can see in the sreenshots. I want to ...
ss-ss-v1's user avatar
0 votes
1 answer
70 views

Is there a way to edit the fonts of headings without a plugin (in the 2022 theme)?

I couldn't figure out how to change the font of the headings and the body after changing themes back to the default. (I feel like I had done it and then when I changed to a different theme and then ...
pixelfairy's user avatar
0 votes
1 answer
247 views

How can I add a section with a different background color?

I've installed Wordpress on my server and I'm attempting to implement the design I've mocked up in Figma. It's a pretty simple design but it employs different colored sections to break up the content ...
pixelfairy's user avatar
0 votes
1 answer
392 views

How do I add custom CSS animations for specific Gutenberg blocks?

I am not building a theme from scratch and am using a given Wordpress template that allows for full site editing with Gutenberg block editor. I have been able to add custom CSS (using the Additional ...
aristhought's user avatar
0 votes
0 answers
40 views

can i custom rendered content from API?

I'm trying to customize a table that comes from posts. I'm making the request through the wp-json/wp/v2/posts/id API. Within this publication I have a table that I would like to customize. Can someone ...
arielcastron22's user avatar
0 votes
1 answer
197 views

How to Remove Active css from woocommerce variation?

I have a small pickle. I can't figure out how to turn the css off after it gets activated. If the user changes their mind, I want the yellow to turn off if they deselect the button (variation). I can'...
Mike - Bain - Loucas's user avatar
0 votes
0 answers
800 views

uncaught TypeError: Cannot read properties of null (reading 'classList') custom plugin

I am developing a custom plugin and I have a big problem that I can't fix. I need to create a couple of checkboxes in the admin panel of the plugin that would change the styles of an element in the ...
VSdev's user avatar
  • 1
0 votes
1 answer
94 views

How to add some basic inline CSS using existing plugin or theme?

Sometimes you have a theme or a very lightweight WordPress plugin (like a single PHP file) and you want to add some CSS easily without having to load more files or folders, etc. How can you add some ...
Jesse Nickles's user avatar
0 votes
1 answer
223 views

Enqueue MCE Editor CSS in admin page

I am using mce editor for some formatted content. That content is stored in metadata. Now when I render the content it does render the content but the styles for the contents are missing like "...
MrCoderAndEditor's user avatar
0 votes
1 answer
40 views

Customizing the Post/Page Editor in Classic Editor

I am creating custom styles for a client. While I could train her on how to apply those styles by adding code in the Text view, it would be easier if I could just create a dropdown of the styles, or ...
Nora McDougall-Collins's user avatar
0 votes
0 answers
32 views

Inline CSS header style priority function.php Child (no enqueing I think)

I am webdesigner that knows some basic CSS and HTML. I never worked with PHP and I don't know how to handle this problem but I think it's fairly easy... Well I hope. This is the code: <?php if ( ! ...
Pim Van Delft's user avatar
0 votes
1 answer
294 views

How to add/enqueue Custom CSS for a custom taxonomy page?

So this is what I have done for my homepage so I load css that only loads on my homepage function enqueue_frontend_assets(){ if(is_page_template( 'homepage.php')) { wp_enqueue_style( '...
fjimenez's user avatar
0 votes
0 answers
323 views

Combine CSS Files without plugin

I want to combine CSS Files and JS files without plugins ; I am procedding with searching to dequeue scripts not to be in used and after that making them in one file Do anyone has an idea? Without ...
askuserahmed's user avatar
2 votes
2 answers
2k views

Add Custom Alignment Option to Wordpress Blocks/Gutenberg

When you set up blocks in the block editor (Gutenberg), you typically get options on how to align them (i.e. none, wide, full). Or, if your theme doesn't have them, you can use the function ...
RCNeil's user avatar
  • 548
0 votes
1 answer
48 views

Displaying images outside the content

I am trying to achieve to following design: This is what I got so far: I'd like to have the bottom images as in my design example. This is, how my single.php looks like. I just can't find a solution ...
Marzii's user avatar
  • 23
0 votes
1 answer
133 views

My site on mobile version is not giving responsive view

I have a website that l use Book your travel theme lately l realized that my site is giving a widescreen on mobile version for some reason! l have only made an update for the plugins 2 days ago l dont ...
Turkiya Holidays's user avatar
0 votes
0 answers
13 views

I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file

I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file because there is adjectance combinator. Code is in https://codepen.io/fede19/pen/zYZMbXB....
Tomáš Maixner's user avatar
0 votes
1 answer
42 views

Themes conflicts and overrides my WordPress Support widget Plugin styles

The front end of the widget plugin has the widget launcher and once opened, it shows the actual widget with its elements. it has lots of styling issues which are 100% from whichever theme is currently ...
Michael's user avatar
1 vote
1 answer
694 views

WordPress 6 - inline container styles breaking my site

I just upgraded a project to WordPress 6.0.1, and now have load of wp-container-* inline styles injected which are breaking my site: <style>.wp-container-2 {display: flex;gap: 0.5em;flex-wrap: ...
codewithfeeling's user avatar
0 votes
1 answer
232 views

How to change ```<h2>``` to ```<h2 data-splitting>```?

How to change the heading tags <h1> to <h1 data-splitting> and <h2> to <h2 data-splitting> and <h3> to <h3 data-splitting> and <h4> to <h4 data-splitting&...
CrazyJack's user avatar
0 votes
0 answers
25 views

CSS appears to not work on any WordPress theme

I am in the process of updating my website and decided to purge the old content and start from scratch. However whichever theme I use the webpage fails to load properly. It looks like something to do ...
Lee's user avatar
  • 1
1 vote
1 answer
124 views

Unable to locate inline CSS causing parts of page to be blank

Large parts on a live Wordpress page shows blank because a piece of inline CSS has opacity set to 0. Unfortunately I am unable to find where this inline CSS lives. <div class="grve-element ...
bart's user avatar
  • 225
1 vote
0 answers
41 views

Style internal links based on the tags of the linked post

When I internally link to one post in the body of another, I’d like the link to be styled based on the tags that the linked post belongs to. For example, say I have tags “good” and “bad”. When I link ...
Avery's user avatar
  • 11
0 votes
1 answer
61 views

Child Theme style.css changes aren't showing. Parent "style-less.css" over rides it, and won't update

I'm using a child theme with a style.css file and none of the updates are showing on the live site. When I view the child theme style.css file via "view page source" the changes show in the ...
Derek's user avatar
  • 91
2 votes
0 answers
18 views

Is there CSS to expand the gallery limit on Index Pages?

On a wordpress index page, I am only allowed to add 12 galleries. I would like to add many more. Is there a way that I can expand the gallery limit allowed on index pages? If this is not possible, is ...
Rhino_Kadabra's user avatar
0 votes
0 answers
150 views

WordPress backend is loading as a list

So my backend is loading as just a bullet list, front end seems to be working fine. I'm not sure what made this happen. I've checked WordPress Integrity and it says it's fine. I've Reinstalled ...
Jessica's user avatar
0 votes
0 answers
49 views

Online wc-blocks-style.css rendering instead of the hosted wc-blocks-style.css

On my archive page is a sidebar which has a style I want to edit. On my local machine, the style is in wc-blocks-style.css. I edited it successfully and it renders fine. However, after deployment of ...
Dotosh Solutions's user avatar
0 votes
1 answer
47 views

str_replace inside specific css files [closed]

Is it possible to perform str_replace inside an enqueue stylesheet? i can do str_replace on inline style with this function function replace_text($text) { $text = str_replace('background-image', '...
Uxair's user avatar
  • 1
1 vote
1 answer
1k views

Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]

I'm working with the Astra theme and I'm looking at my Typography settings in the Customizer. All of the elements (body, H1, H2, etc) have the Font Family set to Inherit. Where do I find the actual ...
CP Creative Studio's user avatar
0 votes
1 answer
116 views

2 css files? Theme css file gets override by another css file that I can not edit

I wasted quite some time already to fix this problem. I somehow have a Wordpress css file that overrides the css of my themes css. See attached image: At the top is the css which screws with my ...
Julian's user avatar
  • 1
1 vote
0 answers
194 views

How to override Bootstrap css with my child theme css in wordpress?

I am trying to load my site's child theme's css after Bootstrap CDN css in wordpress. I tried using these code but it doesn't work. The Bootstrap css is not overriden. What should I do to fix that? ...
wcwc's user avatar
  • 11
2 votes
1 answer
216 views

Can you edit WP gutenberg block css without a plugin?

I want to add custom css to my gutenberg table block. I want to adjust the css width of the tds. Ive tried selected the "Fixed Width table cells" toggle but the table seems to have different ...
sarah's user avatar
  • 21
1 vote
0 answers
1k views

How to stop Gutenberg from outputting inline CSS for specific blocks?

I like to know how I can remove these individually. <style id='wp-block-separator-inline-css'> @charset "UTF-8";.wp-block-separator{border-bottom:1px soli ... </style> WP has a ...
NextGenThemes's user avatar
1 vote
1 answer
122 views

How do I modify the position of a plugin?

I am trying to modify a plugin but I'm a tech newbie. My plugin is for a floating mini cart. it's a great plugin but the position options are limited to "left-middle" or right-middle". ...
Grace's user avatar
  • 11
0 votes
1 answer
325 views

Why is my child theme style.css not found (404) in the front-end? [closed]

I have a brand new Wordpress install (5.9.3) served by nginx (1.13.12). I'm using Docker containers for nginx and wordpress. I created a child theme based on twentytwentytwo following the WP codex ...
Manumie's user avatar
  • 43
0 votes
2 answers
31 views

How can I get the search form to be selected automatically?

There is an icon to open the search form on my site, and when it is clicked, the search form opens in full screen. I want the search form to be selected automatically, how can I do that? Here: https://...
Murat Dinc's user avatar
-1 votes
1 answer
134 views

Filter post style attribute

Looking for a hook which enables filtering of a class within the post or content so i can add inline CSS using custom fields for posts on the home page. Something like this - add_filter( 'attr_entry', ...
Brad Dalton's user avatar
  • 6,916
0 votes
0 answers
196 views

Wordpress Rest Api access the header and extract stylesheets URL

Good morning, i have just started to see in depth the WordPress API and the use of the fetch function in javascript and i would like to know if there is the possibility to get the url of the ...
Dario B.'s user avatar
  • 155
0 votes
0 answers
21 views

Two plugins using the same CSS id

I have two plugins that use the same CSS id, in this case id="TB_ajaxContent" which I guess means that those two plugins use the ThickBox widget to display things in a popup blackbox. One of ...
Alex's user avatar
  • 11
0 votes
0 answers
95 views

Custom css - Wordpress Multisite

I'm using Worpdress 5.9.3 version. When I try to make changes to the additional css on my Wordpress Multisite, I get an error message saying: "Something seems to be wrong. Wait two seconds then ...
Constance's user avatar
0 votes
1 answer
310 views

Wordpress sidebar content moving to bottom of page

Ever since my previous website update (developer no longer with me), I am having an issue with Wordpress widgets on my sidebar moving to below the content, rather than remaining on the sidebar on ...
DieselDog's user avatar
0 votes
0 answers
33 views

Applying css in functions.php

does anyone know how i can style the content i echo out in functions.php with the style.css, just how i would if it was html instead of php? Or whichever other way i can style it, as long as it works. ...
Γιώργος Νικολίτσας's user avatar
0 votes
1 answer
411 views

Scroll code block instead of wrapping text

I'm including some code in a blog post and the length of some lines causes text to wrap, which I don't want. I'd like to have the sort of thing which can be found here on stackexchange, where a scroll ...
fon01234's user avatar
  • 101

1 2 3
4
5
57