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

Remove Parent Style on Carousel

im trying to remove parent style on my sites theme (Shopper WP) on the On Sale Product Grid. This is because I have added some carousels and wish to keep the same format. Any idea on how I can force ...
0
votes
2answers
33 views

CSS change in woo commerce Place Order Text [closed]

add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); function woo_custom_order_button_text() { return __( 'Your new button text here', 'woocommerce' ); } Above is the ...
0
votes
1answer
22 views

Change header image size

I have a header image which looks great on desktop, however, when accessing the site on a mobile device, the image gets cut off in the middle. How can I make it that the image automatically rescales ...
0
votes
0answers
14 views

Sub-menu gets hidden under div

I have a problem with my secondary menu, the dropdown is hidden, and I tried changing the z-index, but didn't work. http://database1.temava.com/ -if you hover over About you'll see what I mean. Thanks....
0
votes
1answer
22 views

Bring Font Awesome icons inside menu A tags

I'm using the underscores _s bare bones theme and have made a second menu for which I've added font-awesome classes to the optional CSS-classes for the menu's navigation labels to produce icons ...
0
votes
0answers
16 views

CSS not loading in mobile

I am running WordPress on xampp and CSS is working in desktop but not mobile. Full url of CSS starts with localhost/.. So I think I need to change it to my router ip becuase I access localhost on ...
0
votes
2answers
40 views

Admin bar default color scheme for nonregistered/nonlogged users

I have disabled the registered users to select the admin color scheme as I want all of them to use the 'Coffee' scheme. I have also made the 'Coffee' color scheme the default one for registered users. ...
1
vote
1answer
58 views

WooCommerce Country Drop Down colours CSS [closed]

I have been trying to change the colours for the selected and hovered country in the country dropdown on the checkout page on a web site I am developing which is http://chi-medics.com/ No matter what ...
0
votes
1answer
29 views

Hide CSS class only in single post pages

I need to hide some elements in my posts pages, but not in all the other normal pages. Now they appear in all my Wordpress site (single post, page, etc). How can I hide by CSS an element? This ...
0
votes
1answer
17 views

Reference multiple style sheets, clearing styles for permalink page, custom fields for css

my wordpress theme will be styling posts on the index page based on their post-ID class -this will result in a lot of css code over longer durations of time. To keep the website lightweight as ...
0
votes
1answer
27 views

Home screen width Stretch [closed]

I am developing a website using wordpress, http://www.csde.epizy.com/, so I want to ensure that width of the content is stretched. What i mean is that: if you load the site (above link) and clearly ...
0
votes
0answers
20 views

Lines of CSS only being delivered while logged in

I am working on a clients site and I noticed a few lines of CSS are only being delivered while logged in to the WP Dashboard. Any idea what might cause this discrepancy?
0
votes
1answer
28 views

PHP/CSS: Shortcode won't display correctly, and only displays in the head (before content)

Trying to create a shortcode to be implemented to a popup. I'm trying to display four images in a 2x2 grid at the center of the page. The problem is that this shortcode now floats everything left and ...
0
votes
0answers
18 views

Make submenu stay open until other menu item is hovered with submenu's

I want to create a menu with a submenu in my wordpress site like this website has done: https://www.opmaatzagen.nl/ When you hover a menu-item a submenu is becoming active and stays active until you ...
0
votes
2answers
27 views

WordPress CSS problems with controls

Where and how should I even begin to fix terrible design problems? I can't change the theme, I must learn how to fix it the current one, I guess via CSS? How to align all textboxes properly, how to ...
2
votes
2answers
61 views

Hide add new page button

I want to hide the add new page button from users that are not administrators. I managed to hide the submenu item from the right column like this: $page = remove_submenu_page( 'edit.php?post_type=...
0
votes
2answers
28 views

How to change the color of a menu item [closed]

I want to change color to red for one menu page "Logowanie". Anyone help how I can do it ?
0
votes
1answer
53 views

How to display a sitmap horizontally? [closed]

I've created a sitemap successfully using wp Realtime sitemap. I've read their instructions and made pages. but i want to show this sitemap horizontally which i attached .I created this sitemap using ...
1
vote
2answers
45 views

Header's CSS doesn't work in Chrome and Opera - any ideas how to fix it?

I am creating a Wordpress site, but I have a problem with desktop version of Chrome and Opera - my header displays differently here (in all other browsers everything works just fine). Here are ...
0
votes
1answer
30 views

proper way to add css using functions.php?

I asked this question before and the solution worked at that time when I asked! However it is not working anymore for some odd reason. I was hesitant to 'ask' the question again but I can't seem to ...
0
votes
0answers
32 views

CSS disabled after getting rid of emoji

I created custom theme in Wordpress and wanted to apply it to my site. Apparently, in the header section, besides the elements, weird text about emoji appeared. I found out that I have to turn out the ...
0
votes
1answer
87 views

Font Awesome wp_enqueue_style

I have been trying to get the same code I have on my old server to work on my new server. This is the code I have thus far: function enqueue_load_fa() { wp_enqueue_style( 'load-fa', 'https://use....
1
vote
1answer
27 views

Is it possible to edit the styling of the admin panel from within a custom theme?

I'm making a custom theme. I know from reading around that I can make a custom admin theme by creating a plugin, but I would prefer to keep everything contained within just my custom theme. ...
0
votes
1answer
30 views

Body class to each level of a hierarchical custom taxonomy

How would this be adapted to apply to specific custom taxonomies? add_filter( 'body_class', 'custom_cat_archiev_class' ); function custom_cat_archiev_class( $classes ) { if ( is_category() ) { ...
0
votes
1answer
54 views

Remove CSS & JS from <?php wp_head(); ?>

I've been with this problem for a couple of days and the truth is that I can not find a solution. I have added code manually in wp-header.php and now I need to delete these lines that it generates ...
0
votes
2answers
13 views

custom css in admin panel by user id

I'm looking for adding a custom css in the admin panel by targeting user id cause I have another administrator but I want to hide something from him by css. I'm using this code to put some stylesheet ...
0
votes
1answer
26 views

How can a .css file be applied to a virtual page?

If creating a virtual page while keeping the theme intact using the following plugin wp-virtual-page-tutorial, how can a .css file be applied to this virtual page? How can this be done using an if-...
2
votes
2answers
854 views

functions.php not adding css to website?

So I went through the forum to find a solution before I post a question, however I have yet to find it. I'm new to wordpress and I'm having a lot of fun learning on how to build my own website. ...
0
votes
2answers
17 views

Good way to customize admin CSS?

I have modified the CSS on the admin and login pages. But the problem is that sometimes the custom CSS is loaded last, and this makes the change visible. The CSS can change during the loading of the ...
0
votes
2answers
29 views

Flickering sidebar when scrolling page [closed]

I am an amateur WP developer building a site for my wife :) I am using Helium theme and the site is in RTL direction. I have a right side bar. After making some changes by changing the main page ...
0
votes
1answer
26 views

Logo Keeps Changing to the Default for Transparent Settings

I have a gallery displayed on my homepage with the transparent header setting option chosen. My transparent header is setup to have a white logo; however, Wordpress keeps utilizing the default logo ...
0
votes
1answer
17 views

Font size decreases when child theme is created from parent theme?

While creating and activating the child theme, the font size decreases as compared to parent theme <?php function my_theme_enqueue_styles() { $parent_style = 'spicepress-style'; // This is '...
-1
votes
2answers
27 views

How to customize posts in WordPress by using HTML and CSS?

I've tried to find the information on the Internet and stackoverflow, but there is nothing about it. So I've migrated my website(html,css,js) to WordPress(index.php,header.php,footer.php etc) and I ...
0
votes
1answer
19 views

how can i fix my display post in my index.php

hello i try to display my post into a div grid of 3 columns with the code <div class="Jobs"> <?php if(have_posts()) { while (have_posts()) { echo'<div class="info_Job">'; ...
0
votes
0answers
27 views

Enqueue CSS and Script only if needeed

How can I enqueue a CSS code only on the pages which use that CSS? Usually it's quite easy to know if a particular CSS or JS is used on a WordPress Post: it's enough to check if the shortcode is used ...
1
vote
1answer
210 views

Font Awesome icons disappearing [closed]

My Font Awesome icon is not showing up in my menu. I reference it <i class="fa fa-pencil fa-fw"></i> and call the referring Stylesheet with <link rel='stylesheet' id='taptap-...
0
votes
2answers
266 views

current menu item hover not working?

I am trying to change the text color of my current menu item as on hover its green but the background is green so I want the color to be white on hover but it does not seem to want to work, to view ...
0
votes
1answer
16 views

How to display only the first two elements from ten same elements

For example, in my theme, I have the following elements, <ul> <li> apple </li> <li> orange </li> <li> banana </li> <li> pear </li> <li> ...
0
votes
1answer
12 views

Content going full width even though container is not

Here if you scroll down to the contact section, you will see that the section is going full width, but it shouldn't because its parent container is set to remain boxed in. Why is this happening?
1
vote
2answers
95 views

I want to change my post titles from h2 to H1

Currently my current blog CSS has the post titles formatted to be an H2, I want them to be the H1 of the page. How would I find that in my CSS to make the update? Or how would you recommend I ...
0
votes
1answer
8 views

How to Compress Css/js code in wordpress and increase loading speed?

Currently, I'm working my blog with good server still working and loading speed very slow https://www.startupopinions.com/. I have installed one plugin is total cache and compress the code but still ...
0
votes
1answer
25 views

how to load basic wordpress css

i am making a wordpress theme and i don't know why theme don't load a basic wordpress css. My site file css "style.css" is load but if i add wordpress php to theme in "inspect" on chrome i see that ...
0
votes
0answers
18 views

How to style Image and Gallery Output for AMP?

So, I am trying to create a custom AMP template for my website without a plugin. Here's where the problem is. I am using a single-amp.php to redirect /amp posts to the AMP template. I have then used a ...
0
votes
0answers
18 views

Targeting specific page with CSS does not work as expected

I would like to target a CSS display rule for the header wrapper element of a landing page as done million times before, and still I don't get it to work properly. I use .page-id-10071 #wrapper ....
0
votes
2answers
21 views

Styling a specific post after hovering over it

Background My website is organised in a grid layout of four columns of divs. Each div is a container for a post and is a square of 200 x 200px. The title is a header at the bottom of the div and ...
-1
votes
1answer
33 views

Bootstrap News: Image Modifciation

I want to improve the design of my website (https://pixelbay.net/). Rather than altering the image myself via Gimp every time I want to post, one feature I want to add is that the main category ...
0
votes
0answers
28 views

Hot to edit WooCOmmerce dashboard?

I'm trying to edit the WooCommerce MyAccount dashboard. When you take a look at my function you can see that I first tried to remove the whole content because I want to set my own one: add_action('...
0
votes
0answers
56 views

How to remove space above header?

How to remove extra space above nav bar in Home tab? HTML <header id="masthead" class="site-header clearfix"> <div id="header-text-nav-container" class="clearfix">...
0
votes
1answer
128 views

Make CSS Changes To Only Affect Mobile Browser [closed]

Trying to make some CSS changes, that will only affect view on mobile phones. I made changes below, but it also affects desktop views. nav { margin-top: 140px; } & ownmenu { background-...
0
votes
0answers
22 views

Wrap WordPress Login Form in custom Div

I'm customizing the WordPress login form with the help of the WordPress Documentation. I'm using the described filters to alter the appearance of the form, mainly by injecting new CSS styles. I'd now ...