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
4 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 ...
0 votes
2 answers
5k views

How to set different color in a select box due to selection with css

I have a select box with 2 options. In the selct area the options are green for 1 red for 2 I had been able to set green also as the color for the predefined option. Now I would like to change this ...
1 vote
0 answers
12 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 ...
0 votes
1 answer
17 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'...
1 vote
1 answer
295 views

How to create fa-bars animated menu

I'm trying to animate my i class fa bars so that the hamburger menu rotates and crosses on click. I haven't been able to find a way to animate it, so found this. <!DOCTYPE html> <html> &...
0 votes
0 answers
14 views

How to hide the titles of pages in Twenty-Twenty Two theme?

I used to remove the titles of pages in older themes with a simple css like this: .page .entry-header { display: none; } I tried to do the same with the latest Twenty-Twenty Two theme, but it did ...
0 votes
1 answer
620 views

How to hide a div section when user is logged in, in single product woocommerce

I have the next issue: I have a promotional banner to show a discount on every single product but I want to hide this banner when the user is logged in, I have tried different codes buy anyone was ...
0 votes
1 answer
17 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 ...
0 votes
3 answers
1k views

Enqueue All Stylesheets Found In a Theme Folder

Is there a built-in Wordpress function that will allow you to enqueue all stylesheets for a particular theme? I have a directory structure that looks like: -my-custom-theme -css -header....
0 votes
1 answer
663 views

Cannot dequeue Elementor Font Awesome css

I am using the same below code to dequeue many other styles but it is not working for Elementor, and a couple of others. function enqueue_content(){ wp_dequeue_style( 'elementor-icons-shared-0' ); ...
0 votes
0 answers
19 views

How do I move the homepage navigation menu to be under the header image?

I am trying to move the homepage navigation menu to be under the main image. I only what this to affect the navigation menu on the homepage and not any other pages on the site. So far I am able to ...
0 votes
1 answer
12 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 ...
0 votes
0 answers
11 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 ...
0 votes
3 answers
654 views

Can I merge all my JS and CSS in one file using WP?

I have a website loaded with plugins, I need them. Is it possible to reduce the amount of js and CSS generated by those plugins? the site is finsof.net
0 votes
1 answer
29 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 ...
0 votes
1 answer
15 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 ...
0 votes
1 answer
1k views

Wordpress footer always at the bottom of the screen-page

I'm having a problem in fixing the footer always to the bottom of the page, also when there is not enough content in the page to fill it. I found a lot of similar questions online and all of them ...
1 vote
2 answers
1k views

custom css for admin only

I need custom CSS for admin. So if user is not logged in or is anything else but admin there is one CSS, and for admin only different CSS. I tried this code in functions.php: function ...
0 votes
1 answer
6k views

Background image call problem

I simply can't find the correct way or working way to do this. I've made an alternative header and added an option with redux theme option to have the alternative header. I've also made a custom-css....
0 votes
1 answer
1k views

Always show wordpress submenu on responsive header menu

I'm trying to edit my CSS to always show all the li tags inside my header menu, also with ul.sub-menu li; I just want to show all the items from the menu, but I'm working on it for hours and I've ...
0 votes
1 answer
16 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'...
0 votes
1 answer
615 views

Wordpress - Portfolio - Change number of items in a row

I am using the Pure theme. Instead of having five (5) items per row in the portfolio, I want to have four (4). How could I customize the theme's CSS? To build the page, I am using the portfolio ...
0 votes
1 answer
724 views

How to include backend buttons css on frontend?

I want to include backend buttons css on frontend in a plugin? This is how its inluded in backend: http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-...
0 votes
1 answer
629 views

How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?

I would like to add toggle style button near the left sidebar for collapsing and opening/closing the left sidebar of Wordpress default Twenty Fifteen theme. I have this code for only removing the ...
0 votes
1 answer
797 views

Menu Underline shows without Hover after adding subitems

One of my client's site has a blue underline when we hover on the menu item. As the client added a sub-item to the "Services" menu item, the underline under the services menu item started ...
1 vote
1 answer
3k views

Website scroll not working on SAFARI

I have a site here missnationglobal.com. Scrolling works fine on Chrome and other browsers except safari. I checked the css markup for the site and don't seem to be able to figure out what is causing ...
0 votes
1 answer
660 views

Unable to properly load Wordpress Admin page

I'm trying to fix a website for a company I used to work for. It looks like the CSS has been stripped from the page (won't load in any browser, I've tried multiple), the Wordpress theme I had ...
0 votes
1 answer
1k views

Is it possible to insert text into an html tag using functions.php?

Here's what I mean: I am using a plugin called 'pods' which allows for the creation of Custom (CPT) and for relationships to be formed between those CPT's. However - there's a little flaw that I can ...
0 votes
0 answers
7 views

How do I change search input padding for blockbase child theme?

I am using a child theme based on blockbase. I need to change the padding on the search form. The CSS variable is --wp--custom--form--padding. The class is .wp-block-search .wp-block-search__input { ...
0 votes
1 answer
629 views

Web Developer Console: "Slow network is detected." with fonts

I am new to coding and just started working on a website. The issue that I am having is the extreme lag time. The site that I am using is in wordpress with a custom theme. Every plugin has been ...
1 vote
3 answers
739 views

How to dequeue styles coming from plugins?

I'm trying to reduce the overloading by not to load all style sheets on my website's homepage. Some of those sheets is coming and loading from external plugins like woo-commerce, I have tried to do ...
0 votes
1 answer
68 views

How can I style the Comment Section of a blog post

I am trying finish styling this page. Once someone posts a comment, it looks like this (see below). I am trying to get the background area just plain black, just like the actual blog text. Then the ...
0 votes
0 answers
20 views

how to add permalink/slug to wordpress custom link menu item

In WordPress wp-admin navigate to : Appearance > Menus > Add menu items > Custom Links in Custom Links we can add a CSS ID in the URL field, example : in another page, i have html tag ...
0 votes
1 answer
27 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 ...
0 votes
4 answers
3k views

How do I remove inline style in featured image markup?

When I create featured images, the markup that wordpress produces has inline css. The image tag for the image has width and height parameters. This is very frustrating: I'd like to control the image ...
0 votes
0 answers
14 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 ...
1 vote
1 answer
921 views

How create a Shortcode with hover and complex options

I am wondering how do you do when you have to create a shortcode with multiple hover or complex options ( gradient, boxshadow etc, thing that can't be inline ). How do you generate the css. I don't ...
0 votes
1 answer
1k views

Change css for certain user roles

I am trying to do a #tribe_events_event_options{display:none;} for all the author users on my site. I don't want them to be able to set an event to featured, and I thought the simplest way was to not ...
0 votes
1 answer
936 views

Custom CSS for full post vs. excerpt (Content Options)

Is there a way activate "Full Post" via Custom CSS or any other way? Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options Here below is what my ...
0 votes
0 answers
18 views

Custom Plugin scripts from admin working in frontend

I am developing a custom plugin and I am pretty much done with it, my only problem right now is taking data from a script that is enqueued both in the Admin and frontend but it does not work as I ...
0 votes
0 answers
30 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 ...
0 votes
0 answers
20 views

How do I minify a plugins CSS/JS code?

I'm using Autoptimize but I'm still getting warnings in Semrush that JS files for other plugins haven't been minified, for example the maxmegamenu.js file and some woocommerce CSS files within the ...
2 votes
3 answers
2k views

Relative path instead of absolute for wp_enqueue_script

When you enqueue scripts or styles with the following: function themeslug_enqueue_style() { wp_enqueue_style( 'core', '/style.css', false ); } add_action( 'wp_enqueue_scripts', '...
0 votes
1 answer
10 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 ...
0 votes
1 answer
26 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 "...
0 votes
0 answers
22 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 ...
0 votes
1 answer
626 views

How limit the width of a fixed menu-bar on scroll?

my primary menu-bar has transparent background. To have the menu visible always on top I looked for a solution and got the 2 codes you see below. This code works fine, except the width of the menu-bar....
6 votes
3 answers
323 views

How can I make the wordpress editor apply the selected template?

I wrote a WordPress theme for a non-profit where I use templates to style individual pages. I select the template for an individual page in the editor on the right: For styling of a template page, I ...
0 votes
2 answers
2k views

display content in multiple columns

I am Creating a Multi row , 2 Columns blog Post like this Post #1 | Post #4 Post #2 | Post #5 Post #3 | Post #6 I have found some post useful https://digwp.com/2010/03/wordpress-post-...
1 vote
1 answer
653 views

How to add styles set by user in the customizer

I want my theme to be very customizable, and so far i have provided the possibility to change text and link colors to the body, plus the background color which comes by default (I'm using the ...

1
2 3 4 5
55