Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
35 views

Change image using only CSS [on hold]

I'm using the twenty fifteen theme. I have a logo set using the WP Customizer. I want to have the image change on mobile or tablet view. The breakpoint is anything smaller than 59.6875em. I'm ...
0
votes
0answers
16 views

Why my website not scrolling on mobile or tablets? [on hold]

my wordPress websitehomepage is not scrolling on mobile or tablet but is is smoothly running on desktop or laptop why?
0
votes
1answer
13 views

How to have different background image based on post category

I have below piece of code in style.css file (website : https://askpuzzle.com) I am looking for option to have different background-image for different post/question category. .question-content-...
0
votes
1answer
16 views

How can we create our own formatting style?

When we write any new post we get text formatting options like Paragraph, Heading 1,.... Heading 6 and Preformated. How can we add our own style there. For example I have below css style that I apply ...
0
votes
0answers
11 views

gallery with post category and custom fields

I'm trying to create a YouTube gallery where i use Posts to get info of the iframe and Feature image. I've built the following gallery: <?php global $post; $args = array( 'posts_per_page' => -...
0
votes
0answers
12 views

Include ElementorPro css into Wordpress custom page

I have created a custom page on WordPress, I have just copied page.php and added my slug at the end of page.php so my custom page is page-my-custom-page.php. Inside my custom page I have a form with ...
-2
votes
0answers
23 views

Adding black borders with rounded edges to video [on hold]

been trying to get my head around the video shortcode. We are hosting the video localy. I found some css I wanted to try. .video-mask{ width: 350px; border-radius: 10px; overflow: ...
-2
votes
0answers
7 views

Fill svg with thumbnail [on hold]

I try to fill an SVG with an image using pattern, like that : <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 370.75 318.57" preserveAspectRatio="xMinYMin meet"> <defs> &...
0
votes
1answer
13 views

Customizing the CSS for the post/page editor?

As you can see from the cropped screenshot below, where I have an HD widescreen monitor, I have a very narrow editing box to create or edit posts or web pages. I have found that the title block's CSS ...
-2
votes
3answers
35 views

How can i remove footer credit text

My website has footer credit which is really hard for me to hide or remove or replace please help me , I'm using painting theme from themeforest. I even tried this also: .site-info{ display:none; }...
-1
votes
1answer
17 views

how do integration Carousel on Wordpress?

Get help from you how to place Carousel in this code that I have now: <div class="black"> <section class="t-grid-11"> <div class="t-grid-i"> <div class="t-grid-i-i"> <...
0
votes
1answer
34 views

My Child Theme CSS Isn't Working

I have a child theme of the twenty seventeen theme. The problem i'm having is that my child theme css isn't working. I have checked the page source and the css file for my child theme is loading but ...
-1
votes
1answer
16 views

CSS messes up when CACHE is cleared

I have a wordpress site: www.gravitywild.com The latests posts I've added don't show. I talked to support and they told me to erase the site cache and so I did. This is what the site looked like ...
0
votes
2answers
17 views

Navigation menu not visible (contrast issue) on home page

I am very new on WordPress so my mistake should not be be too complicated. I did something to my site that the navigation menu items on home (landing) page hidden in the navigation menu here. If ...
0
votes
0answers
16 views

CSS not working on number input nested in a table - Custom Plugin

I am having trouble getting my css to work for a number input which is nested inside a table on my custom plugin template page. I've used wp_enqueue_style() to load my css file and it has worked well ...
-1
votes
0answers
15 views

Customizing Additional CSS Remove it from the HTML head section? anyone help

To save this CSS in a file in the upload folder dynamically. And render the custom CSS from the file. (that was just generated dynamically in 1st step above.) Remove it from the HTML head section. ...
0
votes
1answer
12 views

What is the propre way to include jQuery UI Datepicker's CSS in plugin?

I was looking for a datepicker, I read in another question's answer that jQuery UI's DatePicker is included in WordPress. To make it work I needed to add in script inclusions wp_enqueue_script('...
-1
votes
1answer
14 views

How to change header from full-width to box width

I'm using a custom theme on my website. What I'd like to do is have the header to be boxed while having the main content staying as is. I've looked at several other threads, but I couldn't manage to ...
-1
votes
0answers
12 views

How to remove ''Posted 2 days ago (eye icon)110''

I have a problem. the site i am building in with WPbakery has ''Posted 2 days ago (eye icon)110'' on every page and i want to get rid of that. I installed WP Date Remover and WP Meta and Date Remover ...
1
vote
1answer
17 views

Twig + wordpress - how to get filemtime for style.css

I'm using twig + timber in my wordpress theme. I have style.css file included in this way <link rel="stylesheet" href="{{ site.theme.uri }}/dist/css/style.min.css" /> I want to add ?ver=xxxx ...
1
vote
1answer
39 views

How can I included CSS to a page or a shortcode? [on hold]

I would like to add CSS to a page or a shortcode (preferably a shortcode) that would not be dependent on a theme, a plug-in or anything. I tried adding wp_enqueue_style('[my-css-url]'); to various ...
0
votes
0answers
28 views

Visual Composer css styles only working on standard post page?

I'm trying to integrate Visual Composer with a WooCommerce Multivendor site to enable vendors to design landing pages for themselves. Everything works fine until I'm trying to show a page created by ...
0
votes
0answers
17 views

wp plugin adds “pagespeed.css” after each css file

I have installed some wp page speed optimization plugins to my website. Now the website works faster, however one of the plugins adds its own file name ending, like this one: styles.css.pagespeed.cf....
-1
votes
1answer
34 views

How to Add Body Class, and Remember/Retrieve it Through Local Storage

I want to create a system, where upon click of a button, a body class is added and the value is stored in local storage. The value is retrieved from the local storage, and is put again in the body ...
0
votes
0answers
23 views

theme RTL make big white space in mobile mode and you need to scroll to see the site

I have a bug on the WordPress site on Mobile There is a blank white space and the site opens when you see only the white area and you have to scroll right to see the site When I run the site without ...
0
votes
1answer
15 views

How to fix shifting header after installing speed / cache plugins?

After installing (and uninstalling) Autoptimize, Async JavaScript, BJ Lazy Load, and Leverage Browser Caching plugins, my header shifts back and forth on page load - can you help find the fix? I am ...
0
votes
0answers
29 views

Three-tier menu? [closed]

The drop down menu in my theme is created with css and java in the style sheet. However I need it to be a three tier menu and am unable to get the coding right to make it appear to the side. Currently ...
0
votes
1answer
26 views

jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser

My website's favicon that is seen in tabs of chrome disappears when i use the following jQuery. Removing this script from head makes the icon visible. But why a seemingly simple and unrelated code ...
0
votes
1answer
21 views

Site title not showing. Please help me

Please help me, My WordPress site's title not showing. It's just displaying the domain like, www.example.com. site: https://happyygarden.com Please check my site code and suggest how to display the ...
5
votes
2answers
77 views

show classes as dropdown in guttenberg`s additional css classes input box

I have set some css classes for the boxes in the Gutenberg editor, and I can type it in the additional css input box, it is not a problem for me, but for the client it is not convenient, because he ...
0
votes
2answers
78 views

Cannot set property 'className' of null at setThemeFromCookie

I am coding in WordPress to make a button to toggle body class from light-mode to dark-mode. i was experimenting with trying to add a cookie so that the preference is remembered for the browser. But i ...
0
votes
0answers
18 views

Make CSS active on Plugin admin page work on any site/page/post

I currently have a nice css file hooked into my /wordpress/wp-admin/admin.php?page=Iformbuilder_create page but I'd love for the CSS to stay on the form that's created even when used on other sites ...
0
votes
1answer
36 views

How replace theme styles?

I have some theme. I am running shortcode for my plugin in some page like this: [my_plugin_code atr="1"] But all styles is import from CSS theme. I want my custom CSS. How to do it without ...
1
vote
1answer
24 views

Copying and pasting emoji in a wordpress post

There's this site that allows to copy and paste emoji's https://getemoji.com/ If I copy and paste from there into my posts will it work everywhere? Is it something like Font awesome? To use them I ...
0
votes
0answers
24 views

Theme CSS missing completely

Run into a bit of an issue with our WordPress site, and can't for the life of me work out why it's not applying the CSS to the site! Our website is https://beecityliving.co.uk/ and we're using ...
0
votes
1answer
22 views

Different css rules for TinyMCE and Gutenberg while using add_editor_style()

I wanted to include some CSS rules inside of my gutenberg editor (in a way that it better reflected the frontend of the website). Yet I absolutely didn't want to see the same styles applied inside of ...
0
votes
1answer
16 views

Edit the text location of a form

I was hoping someone might be able to help with something i imagine is very simple. I've created a form and added it to a page, however the text appears to be aligned to the left and the entry box to ...
0
votes
1answer
24 views

How can I remove the ::after CSS selector which is automaticaly appended to the_content()?

I have a CPT which displays meta values after the_content() in the front end, and this ::after selector is messing with my layout. The selector always appears right after the final element inside ...
0
votes
1answer
23 views

How to remove the gap on right side of webpage (using Bootstrap with WordPress)?

This padding on the right side of the webpage (unityinfinity.com) was not visible when it was in development. I recently shifted the website to the main directory using the steps in this post. Since ...
0
votes
2answers
24 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 ...
0
votes
1answer
29 views

Fix hover images blink

I have this css script generated using php, it's used to show a wordpress second featured image when an user hover. The problem is that the images are blinking and I don't know how to solve this small ...
1
vote
1answer
22 views

CSS to remove “comments count” icon from main page [closed]

as the title suggests, can you help me on how to remove icons on the homepage that show the comment count of each article? I do not know CSS, and I do not know exactly what to change. I am using the ...
0
votes
0answers
10 views

Style Wp-admin similar to Frontend

I use a really modern and materialistic theme for my frontend, but the backend is not that good looking. My clients often visit backend and i want uniformity in styles and color scheme, like button ...
0
votes
1answer
16 views

links format change “on clic”

i have an issue on my site, and i don't know where it comes from. every link "change" ( comes bigger & change place ) when i click it. on menu link, they still are clicable, but with link in ...
0
votes
1answer
12 views

Why child theme stylesheet takes long time to update?

I don't face this problem with every site I work on! But sometimes, it happen. The problem whenever I add some style to the stylesheet of child theme. It doesn't show the effects immediately, they do ...
0
votes
1answer
31 views

Why submenu item's background color is not changing by css?

I am developing child theme based on Accelerate by ThemeGrill. I am trying to change submenu item's background color. However it is not affacted by any selector. I have tried to add following to ...
0
votes
1answer
10 views

Can't Workout Dependency of Stylesheets

I have enqueued a new stylesheet rk.css Ultimately I want it to load last after all other plugin css etc to override any css. I have the following in my functions.php of my child theme: add_action( '...
0
votes
2answers
19 views

Trying to link to a custom css file in a new folder

I'm trying to link to a custom css file in a new folder of a small plugin I'm trying to make. I can't seem to get it to work. This is the line I have echo '<link rel="stylesheet" href="' . ...
0
votes
0answers
12 views

top page fixed div background images scroll effect

Is there any plugin to obtain the same effect of the top page of this website I see from the inspector that there are a container div and another three that have a fixed position and a 100vh of hight. ...
0
votes
1answer
20 views

Append style tag in head while shortcode runs

I have a plugin with shortcode. Shortcode returns some html in page. I will have some dynamically generated css that I want to place in the page as well. I tried using wp_add_inline_style (to hook to ...