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
2answers
20 views

functions.php - inject inline css from file

I would like to read from a .css file and inject it as an inline style in wp_head. it's possible? i've tried this "Add inline css to theme" solution but it doesn't do what I expect because I expect ...
0
votes
0answers
10 views

Hide BBPress create topic on one page

Hi sorry this is really basic question. I was just starting to explore wordpress and bbpress, I have a page with the forum index using the shortcode, when I enter a forum it has all the topics and the ...
0
votes
2answers
19 views

Home Page On Scroll Logo changing

I have been trying to get rid of the logo that changes when you scroll down a page, my theme customizer no longer gives this option. Is there any way I can use CSS to stop the menu from changing ...
0
votes
0answers
8 views

How do I make my embedded Mailchimp text box in white colour?

Hi Wordpress Support, I have embedded a mailchimp sign up form in my homepage but the email text box is transparent very hard to see. How do I change it to white background for the text box? Here ...
0
votes
0answers
12 views

Gutenberg: Content Width Frontend

I'm working on the front end of my site however I've ran into an issue where I different content widths as a result of content being not wrapped in a div. <div class="content"> <div ...
0
votes
1answer
19 views

Dropdown contents hidden behind content

I know this question has been asked across the net plenty of times already, but despite that, I still can't seem to figure out a feasible solution! :( I'm sure it's a simple fix... As the title ...
0
votes
0answers
13 views

How can I hide logo until scrolling using css?

This site has a 3 navbar. In the 2nd navbar there is a logo and the 3rd nav there is the same logo in middle. Now I want to hide the 3rd navbar logo initially and then the logo will show when ...
0
votes
0answers
16 views

float:right doesnt work on wordpress [on hold]

i think the problem depends wordpress code so i ask this question here.how to solve it? https://dernek1.deniz-tasarim.site/2019/07/06/kadinlarda-sac-ekimi/ as you can see on the link, two text are ...
0
votes
2answers
18 views

adding additional class to get the post thumbnail

I'm just starting to create new theme and i'm new to code. I'm stuck in customizing the post thumbnail code, i tried add <?php previous_post_link(get_the_post_thumbnail(get_previous_post(), array(...
25
votes
5answers
21k views

How do I add CSS options to my plugin without using inline styles?

I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS ...
-1
votes
0answers
9 views

style query_posts into external website

I'm pulling the last 4 blog posts to show up on an external website page. They load each per row. Wondering how can I style the php code in order to have them displaying in 2 columns. <?php ...
0
votes
2answers
680 views

Changing logo depending on page on Total theme

Is there a way in changing the company's logo without editing the CSS itself? So when a certain page/link is clicked, the logo changes accordingly. Highly appreciate!
0
votes
0answers
9 views

How To Change Caption Background Color in Fusion Slider using Avada Theme in WordPress?

I am working on WordPress for 2 years and have familiarity with executing quite complicated and tricky operations using CSS but something is currently wrong with my system / the website or my theme ...
0
votes
0answers
45 views

Is it possible to link an external stylesheet, exclusively within a specific single post template?

SOLUTION Big shoutout to the wonderful SallyM, who answered this very succinctly in the comments of this post. If it helps anybody, here's the code that I used. Note: Replace the //CONTENT// with ...
0
votes
0answers
16 views

Removing <th> in Wordpress checkout table

I need to remove one tag in this table and make right part of this line on 100% width: I tried to use "display: none;" but I can't make right column on 100%: What else should I try? Here is URL of ...
0
votes
1answer
45 views

Help using ShortCodes to style whole chunks of the post

Recently my sites got hacked, forcing me to start rebuilding them from scratch. It's been ages since I spent time on them, so I don't even remember the plugins I'd installed and used. One of them, ...
0
votes
1answer
18 views

Getting click on item to open closest relevant element (popup) with jQuery

Using the Alerts extension for the WP Job Manager plugin. A list of user-created alerts is presented with some info on each alert. I want to show the info in a popup instead of on the list. Created a ...
0
votes
1answer
17 views

How do I make a custom “Read More Blogs” button for my blog page

I'm actually working on my custom wordpress theme. And, when I tried to develop a "Read More Blogs" button, I was unable. Because, all the examples I saw on internet was for pagination. I need a ...
0
votes
4answers
5k views

CSS not showing up in my website Only HTML Displaying

I am very new to wordpress. I installed it on my linux server lately and uploaded a them on it. Everything looks good on my browser however if I try to access the website outside my network I am only ...
0
votes
1answer
30 views

WordPress default theme CSS version problem and not loading

WordPress default theme CSS version problem and not loading. After change the css code not apply the old css only load. we manually the style version the new code load. style.css?ver=5.1 to style....
0
votes
1answer
437 views

How to make float element in tinymce

I would know how its possible to add a float:left or float:right in tinymce ? I know how to do this for a picture but what is the best solutions for all elements ?
0
votes
1answer
33 views

function class doesnt work

i added a menu to admin bar menu but it's style doesnt work;it looks like has default style <style> .my_menu_item_class{ color:red; background: yellow; } </...
0
votes
1answer
19 views

why css doesnt work when i change my file of wordpress and sql to another computer?

HIII, I've developed a website using "Elementor" and when I copy the file sql and the file wordpress installed on my disk , I moved these files on another computer and I put it the file and run sql ...
0
votes
2answers
32 views

How Do I change Markup of a link in Wordpress

first off, I am sorry if this question has been asked before, don't seem to get it. I would like to change the markup of link in Wordpress to something like this <a href="#" class="s1 s1--top" ...
0
votes
1answer
21 views

Performance hit of Inline CSS

I would like an opinion. Does inline CSS hurt website speed performance? Because even though I write all my custom CSS in the theme customization page Custom CSS section, still in some speed tests ...
-1
votes
1answer
17 views

How to target only one element if more elements share the same CSS class

I am developing a website in wordpress using flatsome theme. I am facing a problem of images sizes. Actually all the thumbnails share the same class of CSS so when I change this class for one image ...
0
votes
0answers
19 views

Wordpress menu hides when i add custom shortcode

I built a plugin that generates a fullpage tab after a shortcode is called but for some reason immediately the shortcode is called the main menu hides on the page. My custom css is shown below ...
0
votes
1answer
24 views

How to change specific menu tab from left to right in My Home Theme?

may i know is there any css that i can use it to change the specific menu tab from left to right? i would like to change the language tab and profile tab (with it sub menu) from left to right. And the ...
0
votes
0answers
8 views

Issue with Transparent Navbar on First Load

This is a test website I am i the middle of created – http://newsite.camerabeanbags.co.uk The issue I am having is that the Top Navigation Menu/header should be transparent when the page is at the ...
0
votes
1answer
22 views

Penscratch 2 - changing color of the main block

I am using "Penscratch 2" theme. I would like to change the color of the main block with text (not sure what's the proper term for this) from the default white to something else (e.g., let's say, pink)...
1
vote
1answer
583 views

Custom Post type menu highlighted in the archive/post

I created a custom nav menu for my custom post type by custom links (linked to the archive page). Let say I have a custom post type named "product", and when I click on the menu, it will go to the ...
-1
votes
3answers
889 views

remove blank space where sidebar was

I have been working on a website using WordPress http://1stgoringheath.org.uk/, there are some pages that I didn't want to have the sidebar on, so I made a template and removed get_sidebar Now I ...
0
votes
1answer
625 views

How to echo custom styles in css format?

I'm usually do dynamic-style.php file for making dynamic css codes from theme options, shortcode, customizer and all others. But, you may already know it'll slow down our site speed. I would highly ...
1
vote
2answers
460 views

CSS from textarea in options page to frontend what to do

I have a textarea for small css enhancements on the plugins page i output them directly to the head. My Question is how to sanitize the CSS i have validation function registered for the options with ...
0
votes
1answer
501 views

Hide Hamburger Menu On Specific Page (Front Page/Home Page)

TheHamburgerCollection.com My hamburger menu is working correctly on all other pages - I just don't want it to display on the home page, where it's visible at 768px and below. footer.php is where ...
0
votes
1answer
22 views

adding the_custom_logo(); to header

i want to show logo on navbar section.the logo appears but i cant control it with css. <?php wp_head(); ?> <nav class="navbar navbar-expand-md navbar-light sticky-top" style="...
-1
votes
0answers
26 views

How to center elements with css?

page looks this on mobile screens: https://i.ibb.co/gDBMwMs/2111.png elements are not centered. part from header.php <nav class="navbar navbar-expand-md navbar-light sticky-top" style="...
0
votes
3answers
759 views

How to add style in functions.php depending on conditions?

I'm a newbie for coding, I would like to learn how to add css style conditionally in functions.php My header controlled by .header-outer class. What would it be the best way to add css depending on ...
0
votes
1answer
469 views

Combining fancybox with multiple thumbnail plugin

I'm combining fancybox(jquery) with multiple post thumbnail plugin. Basically the idea is when the user click the featured image post it will display the image on the secondary featured image. Here is ...
0
votes
1answer
640 views

how to move add to cart button to quantity button on single product page?

please help me guys! i am wondering how to move 'add to cart' button next to 'quantity button' in single product page. I am not familiar with php codes. the default value of add to cart button is not ...
0
votes
0answers
21 views

Remove top bar header

I'm having trouble removing some content from a website which I have taken over. There is a bar above the header which isn't a navigation bar and I am having trouble removing it. I was able to ...
0
votes
1answer
11 views

WordPress theme resource won't load over VPN

We are having WordPress portal over Intranet (LAN) that we use for internal purposes. We have set xyz.org host for Intranet. Over the LAN it is working fine. The issue is when our CEO access it over ...
0
votes
0answers
22 views

Implementing Scrollable Images

Sorry if this question derives subjective answers. I figure that asking on WP-SE makes this a little more forgivable. If I had asked on SO I would have had to explain why I couldn't change the block ...
0
votes
1answer
459 views

Which filter affects the 'entry-title' post class

I created a plugin setting a $var to true if the post belongs to category 'a', and set the same $var to false if the post belongs to category 'b', it works and I can get the correct value depends on ...
0
votes
1answer
8 views

Replace header with large image on home page only, using Genesis child theme

Having looked at Show TwentyEleven header image only on home page, Replace Home with image link inside custom header menu and more, I don't see what I am trying to do. We want to replace the header ...
0
votes
1answer
23 views

Add a default style if no Featured image is selected

How do I have a fallback CSS style if no featured image is selected in WordPress? I'd rather remove the featured image block and replace with some CSS class if nothing is selected. <?php $thumb = ...
0
votes
0answers
18 views

Full width container background image on mobile [WPbakery]

I have a problem with a Full width container background image. Because it doesn't scale well on mobile. Im using Wpbakery. It looks perfectly fine on desktop: But it doenst scale right on mobile: ...
17
votes
5answers
14k views

How to add CSS class to custom logo?

I enabled custom-logo for my theme and have it printed with <?php the_custom_logo(); ?> into the header. Is there any chance to simply add some more classes to this image directly? Per default ...
0
votes
1answer
19 views

How to stop my themes CSS changing the Wordpress interface/?

I'm currently busy exploring Wordpress theme development. I've made a theme and uploaded it to my Wordpress development site. In a css file of me, I've declared some styles for the h1, h2, h3 etc. The ...
0
votes
2answers
545 views

How to remove automatically added <br class=“clear” >

I'm creating one wordpress template. Required information added in wordpress header.php, footer.php and everything was fine. Then i added one page. But while viewing the page there was a small problem ...