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
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 ...
0
votes
1answer
24 views

Menu toggle bar works only on some pages in WordPress

I'm using a custom WordPress theme extended from Twenty Sixteen for this website. It is using Bootstrap (I had to migrate a static Bootstrap website to WordPress). If you open the website on mobile, ...
0
votes
0answers
12 views

File Upload with JS and CSS

Whats wrong with the below code, it does not show the file I choose to upload: // PHP Code: $form .= '<script class="jsbin" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">&...
1
vote
1answer
18 views

How to display a value from a radio button in the options menu in wordpress

I'm a little stumped on this one. I'm not very experienced when it comes to PHP, but I have figured out how to display a value inputted from a text box. I'm now trying to do the same with a radio ...
0
votes
1answer
24 views

CSS transition from 0px width to 100% width

I have a website where I have set the content to left 100% on normal screen and on click on the button it will show on the screen with left 0%. I want the transition to be smooth, like the width will ...
1
vote
1answer
20 views

Shortcode content output but not in correct place

I have created a shortcode that gets information from an ACF repeater field... function display_websites_shortcode() { ob_start(); // check if the repeater field has rows of data if( ...
0
votes
3answers
24 views

Title has word broken when viewed in mobile [closed]

I am designing a website using the Renden Free theme, and my problem is that some long titles, when viewed in mobile, have words broken in half. For example: As you can see, the word "Corporal" gets ...
0
votes
1answer
36 views

Navigation menu disappears when I hover the mouse [closed]

When I hover the mouse on submenu of our products section it automatically disappears, so I cannot click on the sub products. can you please help us out? website
0
votes
1answer
17 views

how to modify html on homepage (no home-page.php in my theme)

I would like to modify the html in on my homepage from <div id="slide-6996" class="slide slide-6996 cycle-slide-active slide-left light" style="background-image:url(http://18.205.33.160/wp-...
0
votes
0answers
25 views

Same height on items in columns block (align-item stretch or other method)

I am building a small plugin to make it possible to add bootstrap cards as custom blocks. This works great in general. Now i'm working on their css and have an issue with alignment. I would like the ...
1
vote
1answer
17 views

Checkout form looks terrible [closed]

Im currently building my first ever wordpress theme however the checkout form just looks messy. I have tried changing some bits around with css but It all just looks our of line. I have tried ...
1
vote
1answer
26 views

Edit css for search results page

I have a search results page with a template call content-search.php. Basically what this file does is to display the results after a person searches something on the search bar, and i would like to ...
0
votes
1answer
25 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
1answer
22 views

Should I store critical css in the database or in my theme's filesystem?

I have a method for detecting a post's critical css when the page is requested and in-lining it to optimize page speed. I would like to cache this css to avoid having to compile it for every page ...
0
votes
1answer
36 views

Wp includes access control

Everyone peoples can easily acess to my wp-includes how can i hide or not visible files to users can anybody help me regarding it this is my wordpress website link see everybody can see this https://...
0
votes
1answer
22 views

Add a unique body class for every admin page (including trash)

How can I add a unique class for WP admin pages (including trash) ex. URL wp-admin/edit.php?post_status=trash&post_type=locations
1
vote
2answers
47 views

Change post featured image on hover

I've almost finished my first custom theme for a website. I've created some custom post type to manage a portfolio and a staff member section. No problem with the code, but the client asked if is it ...
0
votes
1answer
13 views

Display posts side by side with custom query

I'm trying to organize my posts side by side but they keep being displayed vertically. This is my code: <div class="row agenda-box justify-content-start padding minheight-40"> <div ...
-1
votes
1answer
28 views

remove author and date from all posts [closed]

I've tried including some code in style.css of my theme, but it didn't work. Ex: body.blog .posted-on, body.blog .post-author, body.blog .post-comments, body.blog .entry-taxonomy { display: none; }...
0
votes
0answers
12 views

Adding content between Header and Footer

I'm trying to add a google maps "Places Search" functionality between the header and footer of my WordPress website. I'm using a theme that provides a custom header and footer. The google maps ...
0
votes
1answer
41 views

When using https, wordpress doesn't use https for CSS and JS, and admin doesn't work. How do I fix this?

So I recently, built and LAMP server and installed wordpress on it. I connected it to the web via a reverse ssh tunnel using serveo.net. I decided to add ssl and the rest of the website seem to work ...
0
votes
1answer
13 views

Style not being applied to newly installed themes

really hoping someone can help, I am at the end of my tether.. I have tried installing new themes and none of them have the style applied when i activate them, or even preview them for that matter. I ...
0
votes
1answer
82 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 ...
0
votes
4answers
45 views

Add second background-image on hover

I'm using my featured image as a background image on a div and I would like to add a second background-image to that same div on hover (I need them both because I want to blend them). Any suggestions? ...
1
vote
0answers
167 views

(Sticky Row) How do i make a row sticky in wpbakery page builder?

I want a row to get stick to the top menu so that it can act as meu for my user. For reference please see the image.
0
votes
0answers
16 views

Move plugin css to another area in html markup

I'm using <noscript id="deferred-styles"> <link rel="stylesheet" href="mysite.com/css/main.css"> </noscript> to defer css styles. I have some plugins adding css which I want ...
0
votes
0answers
35 views

how to remove a tag in the_category function

https://core.trac.wordpress.org/browser/tags/5.0.3/src/wp-includes/category-template.php#L0 line:195 //line 195 default: $thelist .= '<a href="' . esc_url( ...
0
votes
1answer
21 views

Wordpress custom blockquote with black background & white text?

I have no idea if I'm in the right place, but anyone help me customise my site? My current wordpress theme has blockquotes that look basically identical to regular (bold) text. Could I use CSS ...
0
votes
0answers
15 views

Gutenberg table spacing

I would like to reduce the spacing between rows on tables that I create. Here is a sample and the CCS that I've created so far. I've tried every thing that I could think of to get it to change but no ...
1
vote
1answer
81 views

How to float an image in Gutenberg

I am trying to make my first post in Gutenberg and I've discovered that aligning the image right around the blocks works in the editor but when I preview it is not floating right. Previously I had ...
0
votes
0answers
22 views

index page link tag injected with wrong href attribute

Recently when I've updated my wordpress site to the latest version, the website has become incredibly slow because stalling occurs when trying to load a corrupt href link: the href attribute should ...
0
votes
1answer
25 views

Plugin Theme CSS [closed]

For a Plugin Theme, I have been unable to include some changes, and have to change them in the plugin itself: /wp-content/plugins/myplugin/assets/css/ .myplugin #content div.product div.images, ....
1
vote
1answer
14 views

How to align full div [closed]

I want to align this scrolling events on the slider left to right but it's not working. Can anyone tell me the exact way to align it at the right side on the slider image using custom css? .un-post-...
0
votes
3answers
250 views

Load CSS in footer, like your can with JS?

I'm loading some third party CSS with the help of wp_enqueue_style. I would like this CSS to be loaded in the footer, so it does not block rendering of the page. This would be fine, since this CSS is ...
0
votes
3answers
32 views

Historical customisations won't go away [closed]

I've inherited a wordpress website I need to maintain. Despite having upgraded it to the latest version (5.03), and having changed the theme, there seems to be some customisations which survived. ...
0
votes
2answers
24 views

Child theme after CSS modification

Hi I used the Edin theme to build a wordpress website. I modified a big part of the CSS at the CSS editor, without having a clue what a child theme is. What should I do now? Create a child theme and ...
0
votes
0answers
11 views

Woocommerce payment menu not fit

how I can fix that my menu is not fitting to page, why it sliding together scroll, how to fix it?
1
vote
1answer
142 views

Style new block-editor alignfull class without scrollbars or overflow

With WP 5.0 you can now enable full width blocks in the editor by adding this to your theme: add_theme_support( 'align-wide' ); However, if you are using a custom theme you have to add your own CSS ...
0
votes
1answer
24 views

I have two post types in the same query, how can I use CSS to select only one post type?

I'm using OceanWP theme and Elementor at this site: https://mymythos.org/ Ritual, Relaxation, and Motivation are examples of the second post type. Most of the other posts are normal WP posts.
0
votes
1answer
39 views

all of a sudden my child theme style.css is being ignored? Its been working fine for months?

anyone have any idea what could have caused this? Thanks https://www.subscriptionboxaustralia.com/directory/
0
votes
0answers
21 views

Simple Custom Css and JS wordpress plugin not showing all functions

I had moved my website from digital-ocean to go-daddy and now i can see one of my plugin not showing all functions screen shot attached i also tried by deactivating and activating again but not fixed ...
0
votes
0answers
23 views

How to custom a widget class in Style.css file?

I am a newbie here. I could custom a feed via widget/RSS plugins or additional CSS. But while I add directly in style.css, it didn't work. I have read a similar question "Custom CSS for a particular ...
0
votes
0answers
59 views

Change WP Child theme CSS for WP Bootstrap Starter Theme

I am having trouble figuring out how to change styles for the WP Bootstrap Starter theme. I've created a functions file with the following: <?php function my_theme_enqueue_styles() { $...
0
votes
1answer
188 views

Remove dashicons.min.css conditionally

Trying to remove dashicons for non-logged in users excluding specific pages and specific categories with the following: add_action( 'wp_enqueue_scripts', 'go_dequeue_dashicons' ); function ...
0
votes
0answers
20 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
64 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
24 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
20 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
28 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
20 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 ...