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

3 Level Menu Navigation (3rd Level not displaying)

I am using wp_nav_menu on my wordpress theme but I can seem to figure out how to display the last level on my menu navigation. I would like the last level to display on hover of the parent item. Here ...
0
votes
2answers
44 views

TinyMCE on frontend style not working

I use TinyMCE advanced on my Wordpress website. My logged-in users have the ability to fill forms with WYSIWYG fields. I don't understand why some styles are not applied on those fields while it ...
0
votes
0answers
10 views

WP Website is shown in HTML

I‘ve been experiencing quite a strange issue with my WP website since I’ve upgraded my WP to the version 5.4.2. From time to time (it can occur to 2-3 times / week) my Website is displayed as html ...
0
votes
0answers
18 views

Is there a way to cache mailchimp css on wordpress?

At that point where I'm playing with load times and scores on Lighthouse, GtMetrix and the like, and am seeing problems? where external css scripts aren't being cached. For example, from mailchimp.com:...
0
votes
0answers
13 views

Links to CSS and JS change based on page you're visiting

I have a multisite setup. One of the sites is having an issue linking to the stylesheet and JavaScript resources. For some reason, the URL to those resources add the page url to the link. For example, ...
0
votes
0answers
17 views

Add an attribute to the root from functions.php with add_filter

I followed this link. First thing I did was to add my dark-mode switcher, add JS to handle it and edit my CSS accordingly. Thing is, I didn't exactly do that, I used the possibility to have a global ...
1
vote
1answer
30 views

Add a CSS class based on categroy id to archive pages

How can I add a css class based on categroy id in archive pages body in wordpress? I want to style each category page different
0
votes
0answers
18 views

Image displays only when height is set to length

I have a 2 column layout one column is in text & some images second is an image. In mobile view, they stack on each other but the image appears only when the height of (.column__two { width: 100%; ...
0
votes
1answer
10 views

SASS not showing in customized preloader plugin

I am new to WordPress and webdev in general so my skills are moderate. I am using a plugin called WP Smart Preloader to build my sites preloader. It allows for the use of custom HTML and CSS. The HTML ...
0
votes
1answer
64 views

WordPress backend is loading without style

My website WordPress backend is not loading with CSS….the frontend is working fine but once i try login to my wordpress admin the page load without any style .. I have reinstalled WordPress core file ...
0
votes
1answer
39 views

How to deal with logo color on dark mode?

I'm trying to add a dark mode on my website via prefers-color-scheme webkit. However, my logo is all black, while my header is white. On dark mode it should be the other way around. My logo is in PNG ...
0
votes
1answer
24 views

How to show address in one row?

By using contact form 7 i created address page. By selecting the city they can view the list of branches in that particular city but here i am getting small problem in first row address are not coming ...
0
votes
1answer
31 views

How to add CSS class to <li> and <a> and id in a nav menu with code?

I have registered nav menu. here is the code <?php wp_nav_menu( array ( 'theme_location' => 'top-menu', ...
0
votes
1answer
26 views

Trying to style Woocommerce sidebar Cart Widget [closed]

I have looked at length to find CSS that will change the background color, border radius and product info text color. I think this may not be a "mini cart". The price of the item, subtotal ...
0
votes
1answer
23 views

Blog page and the Home page showing the same content

I am trying to set up a website with askme as the main template and consider myself as someone who dosent knows website coding yet.And so I am using Wordpress to build a website.But the only problem I ...
0
votes
0answers
21 views

Change ul from vertical to horizontal in widget

I am trying to change the style of a widget (https://ibb.co/n3hnXP5) displayed in my home page from Timetable and Event Schedule by MotoPress plugin. The original html output of the widget is <div ...
0
votes
1answer
36 views

WordPress childtheme not loading any CSS/SCSS

I'm using the BigFoot theme and I've made a child theme from this. I've set everything up, my child theme is activated in the wp-admin and everything looks good but for some reason my page isn't ...
0
votes
0answers
8 views

How to include my paths in the right way, that i can get me form complete with css, style in plugins

class contactform{ public function __construct(){ add_action('home.php', array($this, 'enqueue')); add_shortcode('contact', array($this, 'enqueue')); } function activate(){ } function deactivate(){ } ...
0
votes
0answers
16 views

How to reference different css (bootstrap) stylesheets for the header and body of a page?

Thanks in advance for the help, and apologies if I'm being dumb, I'm rather new. I have tried various different answers on this site, but they did not work, as they were meant for different pages. I ...
0
votes
1answer
14 views

DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front

I'm using the Divi 4.8 theme on a localhost created by WAMP Server. The changes I make using the theme customizer menu are updated correctly in the preview screen (header, background colour, logo size,...
0
votes
0answers
8 views

How can i get an :after element to display beneath columns next to it using z-index?

I am creating a page in WPBakery Page Builder, and I have a dotted line created from :before and :after rules, and am looking for help to get the dotted line beneath the columns it currently is on top ...
0
votes
0answers
8 views

Change the space between nav menu and header based on user scrolling position

Hi there good people around the world! Im trying to design an Elementor Header With some custom CSS.. Im trying to change the height of the space between my header and the header full width mobile nav ...
1
vote
1answer
58 views

Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes

I am trying to change the audio player on my website to show "time remaining" rather than "elapsed time". I have managed to make most of the changes I want with CSS or php changes ...
0
votes
1answer
30 views

How to make a dynamic css class whose name changes every visit to confuse scraper

I want to make the page classes changed dynamic depend on time or anything else to force the type of scraper that depend on my site classes or the classes like content, entry-content .. etc. How can ...
0
votes
1answer
32 views

Woocommerce doesn't work with theme, header missing and css messed up

Basically I'm trying to make woocommerce work with my theme. Summary: Header doesn't show up on product page and the css is kinda bad I'm sorry if the post is long, when I ask something people ...
0
votes
1answer
22 views

How can I modify the CSS only for the search results page of Wordpress?

I use the wordpress theme Sensible WP. When I do a search this is what appears as the URL: https://www.example.com/?s=my+search+text I need to modify the CSS for this page only, not all pages, but I ...
0
votes
1answer
19 views

How to make jquery slider to start afresh [closed]

I would want to have the below setinterval() to start afresh once the last slide is reached, am having three div and but the slide stops once it reaches the third div, i would want it to start again ...
0
votes
0answers
16 views

Output custom added customizer CSS as inline style

I've added custom CSS panel to my customizer to output it after my theme style as inline style. Here is my customizer code - $wp_customize->add_section( 'critical_css', array( '...
0
votes
0answers
27 views

Can't display anything through homepage text editor

I'm trying to use my homepage text editor but nothing will display when I use it. I've tried using a high z-index but nothing will display. Page here I've had to resort to using css to display text ...
0
votes
0answers
35 views

How to display image on WordPress homepage

I'm trying to display an image through my home page in WordPress, through my text editor on the page, but nothing displays. It works on other pages, just not on the home page. When I press publish, it ...
0
votes
1answer
45 views

Trying to get my CSS files to load last using add_action(after_setup_theme, add_css_js, 100000)

I am trying to get my CSS files to load after the theme and plugins have been loaded using add_action(after_setup_theme, add_css_js, 100000) function add_css_js(){ wp_enqueue_style( '...
1
vote
1answer
309 views

The style.css stylesheet doesn’t contain a valid theme header

when I try to upload a theme I have uploaded on a free host and it is the first time I upload a theme on a host, I got this error failed because The style.css stylesheet doesn’t contain a valid theme ...
0
votes
1answer
12 views

Add top parent page id to body class

I need to have the top parent page id added to the body class of the pages. Homepage (id:10) - Sub page (id:11) -- Sub detail page (id:12) By default it's like: Sub page gets parent Id 10 in the ...
0
votes
1answer
20 views

Remove CSS Attribute by Overriding CSS in Child Theme

I have a theme I am trying to customize the style, and to do so, I have created a child theme. The child theme contains a style.css and I've been able to override certain attributes, but I can't ...
1
vote
0answers
12 views

How to integrate my HTML and javascript into my child theme

I have a javascript script, html, and css I put together on JSfiddle that I now need to essentially put on a page in wordpress. I'm using a child of the generatePress theme. I'm doing it this way ...
0
votes
1answer
17 views

Why can't blocks be hidden with jQuery?

This seems to be a trivial CSS question and should be asked on SO, but I think there are many subtleties in here that it's better to ask in here. I add a CSS class to a block and use jQuery to hide ...
0
votes
2answers
35 views

How to remove in-line style of Wordpress's post content only?

My previous blog author using his font-family and size on every sentence of blog post. I want apply new css rule to post but it cant overide these in-line styles. I tried searching around and found ...
0
votes
0answers
20 views

Change class value using CSS

I would like to change "Email adress / Email" to other value. Is it possible by using CSS? Could you help me with this please? <label class="edd-label" for="edd-email"> Email ...
0
votes
1answer
23 views

CSS gap issue in div element

The items are not listed in order there is a gap between item listed how to fix this. Screenshot: https://prnt.sc/sphfig <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> ...
0
votes
1answer
66 views

Change hover to onclick on menu

I've got a local website on WP using DIVI where a header menu got some "menu-item-has-children". In way to view these sub-menu, I just have to hover on it and when mouseout the sub-menu disappear. ...
0
votes
0answers
21 views

Using JS .show() and .hide() causes hidden div to not be displayed properly

So I have a drop down menu coded in HTML as follows <Select id="ContentSelector"> <option value="Courses">Courses</option> <option value="Podcourses">Podcourses</...
0
votes
1answer
8 views

Trying to modify the background of a form on a specific page

Here's my CSS: .page-id-9399 body #gform_wrapper_3 { background-color: #363c42; } This is related to a Gravity Forms (contact form submission). I'd like the background of the FORM to be the ...
0
votes
2answers
60 views

How to change the style.css?ver=5.4.1 in Wordpress?

I am using WordPress and I have style page link https://example.com/blog/wp-content/themes/themename/style.css?ver=5.4.1 I have to change from style.css?ver=5.4.1 to style.css?v=<?=time();?> ...
0
votes
1answer
21 views

CSS: Appearance/Customise display different to actual display

I use the Shared Counts plugin for displaying social media buttons on my blog. I'm using a shortcode to display some buttons in a footer text widget on my homepage. When I format the way they look ...
0
votes
2answers
31 views

Custom CSS on mobile

I would like to ask you guys questions. Already set up custom css for mobile @media only screen and (min-device-width: 601px) and (max-device-width: 736px) @media only screen and (min-device-...
0
votes
1answer
16 views

My sites mobile view design is different when not logged in - how do I ensure it's all the same?

I'm having trouble with my mobile responsiveness. The issue arises when a user is not logged in (e.g. hits the homepage for the first time). The desktop site works as expected, no issues there, but ...
1
vote
1answer
73 views

Shrink Header Image on Scroll

I am currently using the free version of neve on a local server and I am trying to make my sticky header responsive based on the scroll. The text is responding correctly and becoming smaller, however ...
0
votes
0answers
54 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
0answers
17 views

How to find and delete a menu item in php?

I have a menu item that's linked to its children in my html. <div class="collapse navbar- collapse navbar-ex1-collapse"><ul id="menu" class="menu"><li id="menu-item- 3530" class="...
0
votes
1answer
11 views

How take a widget/shortcode on top of page content with CSS o JS? [closed]

I wrote a shortcode that generate a custom HTML element using HTMLElement JavaScript class. This widget uses a lot of custom CSS. It works good but on some themes (like The7 i.e.) some page content ...

1
2
3 4 5
50