The Stack Overflow podcast is back! Listen to an interview with our new CEO.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Mask transition for image [on hold]

The main goal I want to achieve is from previous to the new image should change that too. if I keep the mouse on the image then slowly display another image like a mask transition here is a below ...
0
votes
1answer
14 views

register dependency css and js inside a plugin class

I have this code: public function __construct() { add_action('wp_enqueue_script' , array( $this, 'initBootstrap' )); add_action('wp_enqueue_style' , array( $this, 'initBootstrap' )); ...
0
votes
0answers
6 views

SVG in list-style-image breaks when adding fill

I'm trying to add a custom bullet using CSS list-style-image. Here is the attribute: ul { list-style-image:url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg width='...
0
votes
0answers
15 views

How to disable theme editor “error” nag

When making small changes to my live site using the theme editor (for bigger changes I'd just grab a copy of the whole site as a development version and make changes to that locally), I get the error ...
0
votes
1answer
14 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
117 views

Kirki inline styles with Understrap theme

I am using Kirki and it’s ‘output’ argument for typography, background and color control fields. I am using Kirki in the Understrap theme and the theme uses gulp and SCSS. I also wanted to use ...
1
vote
1answer
231 views

Do I need normalize.css when developing my own Wordpress-theme?

I'm developing my own Wordpress theme and I'm trying to make it as light as possible. I started from the Underscores starter theme, but they use normalize.css to reset the styles. Is it necessary to ...
0
votes
0answers
63 views

Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?

I want to make some page layouts with the Gutenberg page builder so I can reuse them as sort of page templates. An example: banner image on top of the page main title under the banner 3 rows with ...
0
votes
1answer
123 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
187 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
1answer
42 views

How can I fix my theme header for my CSS stylesheet?

/*  Theme Name:     Its Bullish  Theme URI:      https://www.itsbullish.com  Description:    Its Bullish  Author:         Bullish Advertising  Author URI:     https://itsbullish.com  Template:       ...
1
vote
1answer
34 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
20 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> ...
1
vote
1answer
51 views

How to add styles set by user in the customizer

I want my theme to be very customizable, and so far i have provided the possibility to change text and link colors to the body, plus the background color which comes by default (I'm using the ...
-1
votes
1answer
207 views

Add CSS class to PHP Statement

A newbie question, I have been trying to style certain PHP code and I keep hitting the wall. I need to add CSS class to the No results found text bellow: <?php } else{ ...
2
votes
2answers
49 views

First completely customized theme, where should I start?

I've been using the Genesis Framework to build custom themes along with Visual Builder tools like WPBakery Page Builder. The more I learn about file size and website performance, the less I want to ...
1
vote
0answers
686 views

Font Awesome 5 Free - far working but fas is not? [closed]

This is making me crazy. I'm using Font Awesome 5 Free in custom list styles using :before and content: In every instance, far icons are working and fas icons are not. I've checked everything I ...
0
votes
1answer
16 views

How to insert class in each list of categories?

<ul class="list-inline"> <li class="list-inline-item">Category 1</li> <li class="list-inline-item">Category 2</li> <li class="list-inline-item">Category 3</...
-6
votes
1answer
44 views

How to define and link full path to css located at a random folder on header.php

I want to link css and .js script on my header.php file, problem is I am not sure what should be the starting point of the directory Below is the directory where my file is located: Example path: ...
0
votes
1answer
537 views

Inside a loop, how to change CSS class based on category name?

This is my first post here. I am struggling with a new situation for me, as a WP Developer. I have a loop that lists some posts. These posts can be published in different categories. I need to ...
0
votes
1answer
40 views

Why is my CSS not loading?

I have the following code on my wordpress page but none of it is being formatted by the style.css file. Everything is in a folder titles 'Web Services' that i place directly into the wp-content/themes ...
2
votes
1answer
575 views

Custom CSS In Uploads Folder

I am wondering if it is typical to have custom CSS files in the uploads folder. I have inherited a custom theme from a previous developer, and a significant amount of the styling of the front-end is ...
0
votes
1answer
51 views

theme-independent CSS/JS files

So far I did the following task to add theme-dependent CSS/JS files; I added to the theme's functions.php this code, then created the relevant CSS and JS files: function my_theme_enqueue_styles() { ...
0
votes
2answers
408 views

I can't add CSS with functions.php

I'm relatively new to creating a theme with WordPress, and I've been adding all the stylesheets (main and for each page) with the old echo get_stylesheet_uri();. But I find out that this isn't the ...
0
votes
3answers
102 views

How to i style the elements from the TinyMCE

if i have a paragraph with class "test" in the TinyMCE editor how do i style the paragraph using my style.css file in my theme or do i need to make a separate file and if so how would i go about that?...
0
votes
0answers
359 views

WordPress doesn’t load css, image and js files after moving local installation folder

I am running Wordpress on my local machine using WAMPServer. However, after moving the WordPress files from a folder called, wamp64/www/custom_theme/ to the wamp64/www folder, WP is still attempting ...
0
votes
0answers
145 views

How to generate a rtl.css file for themes?

I'm developing a theme and would like it to support RTL languages. I'd like to automatically generate a partial RTL file, that is, with only the relevant selectors flipped, but every tool I've tried ...
0
votes
1answer
1k views

How to style bootstrap container in wordpress theme?

I am createing the footer.php for my costum theme. The whole footer is full with/356. In the middle of this container I another container which is 960/252. Inside I have some components(logo, social ...
0
votes
1answer
491 views

CSS loading as empty file in Custom Theme

Hello I made a custom theme and moved it from MAMP to a cloud server. For some reason the CSS is an empty file. File path is correct, checked the file in cPanel and it has the full .css sheet. But ...
0
votes
1answer
367 views

How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?

I would like to add toggle style button near the left sidebar for collapsing and opening/closing the left sidebar of Wordpress default Twenty Fifteen theme. I have this code for only removing the ...
0
votes
0answers
75 views

Load multiple css simultaneously using functions.php

There's the default style.css and the one from prismjs. Current scenario: Default CSS loads first, then the javascript for prism kicks in and the code tags are styles. The delay is a fraction of a ...
0
votes
1answer
144 views

Header is not showing full width

i am using bootstrap in WordPress. Header is not showing full width in WordPress. But when i test the code without WordPress it shows full width with background image. What can be the reason? //my ...
2
votes
0answers
40 views

WordPress default theme css units

Is there a specific rule the default WordPress themes follow for CSS units? I see em's on some font sizes and rems on others and px on certain places. Referred the following links but I couldn't ...
0
votes
1answer
558 views

Root Sage theme styles are not working!

One of the websites that I'm working with has a custom build theme using Sage Roots. It works just fine on the live site and I was trying to setup it up in my localhost to work with it. For some ...
0
votes
1answer
33 views

Necessary css classes to be included in theme stylesheet

Developing a WordPress theme. I've got two questions Does the first response here hold true even after 5 years? Is it necessary / considered a good practice to include all the default html tags, for ...
0
votes
1answer
26 views

CSS added through customizer neglects the need of a child theme?

Many developers know that if you change the style.css of a theme, and then the theme gets updated, your changes will be deleted. The traditional solution for that is creating a child theme inheriting ...
0
votes
1answer
2k views

overlay post title over post's featured image

I'm using the Twenty Seventeen Wordpress Theme. I'm trying to do something similar to the below image for the static front page: Currently, this is an image of what I have on my site: The post title ...
0
votes
1answer
235 views

How to override template files in parent theme?

My parent theme has most of it's codes are divided into pieces and in different folders with different files. for example, menu's are in one file, search is in another file, etc. and all these files ...
2
votes
3answers
203 views

Is it possible to use the featured image of a page as a css background without inlining?

So, I'm totally new to WordPress and trying to "convert" a static site to a WP theme. I have a page where I'd like to use the featured image as a background for a div. I was wondering what is the ...
0
votes
1answer
54 views

Does WordPress default CSS have Grids?

WordPress 'out of the box' comes with some javascript to allow you to send AJAX requests, show the image select dialog, etc. Does WordPress 'out of the box' come with any default CSS? Especially for ...
1
vote
2answers
342 views

Writing Clean WooCommerce Styles

So I'm building my first custom WooCommerce store and I'm finding that my styles class names are becoming a over the top and lengthy, or is this how it is. I use the inspector tool in Chrome to get ...
-1
votes
1answer
409 views

How do I middle-align my header menu items in WordPress [closed]

I accidentally moved my header menu items (screenshot) to the top. How do I move them back to the middle (default) as shown in the demo website?
0
votes
1answer
53 views

How to rotate every letter in a title

I was wondering how to rotate every letter in a title. You can rotate every letter in a word with <span class="slant">A</span class="slant"> <span class="slant">c</span class="...
0
votes
2answers
135 views

how to add custom css at top above all css file for specific url

i want to add my css file bootstrap.min.css on top of all css file. I used below code wp_enqueue_style( 'bootstrap_css', 'bootstrap.min.css' ); but it add css below theme css file . Issue is that ...
2
votes
2answers
107 views

Modify the Additional CSS section (adding a disclaimer)

I was trying to dig into this deeper, but I couldn't find any useful ways/hooks to add a little disclaimer above the Additional CSS code editor in the Wordpress Customizer. If anyone has a starting ...
-1
votes
1answer
34 views

How can i hide the authors box from a specific set of categories and post types?

I want to just hide the authors box under the posts for few specific categories, while on the rest it will remain visible as is.
1
vote
2answers
527 views

Is it necessary to prefix every css class in a theme framework?

I'm working on a theme framework, prefix everything include css classes, so 'main-content' is 'framework-main-content', 'header' is 'framework-header', etc. Recently I took a look at the famous ...
0
votes
1answer
68 views

Can't change the style of a submit input type? [closed]

I have a membership plugin which makes a custom login page. I want to change the hover style for the submit button. I tried to inspect the element to know which style i should change but i can't find ...
1
vote
1answer
551 views

Why does the 'wp_nav_menu' function work only until a menu is created?

I'm trying to create a theme for wordpress so I've done a clean install. I have not created entries, pages or menus. At this point I am in the part of creating the menu so I created in my functions....
-1
votes
1answer
394 views

How to resize video lightbox popup in wordpress? [closed]

I am using videolightbox in WordPress. Video Popup size is too big see here almost covering the whole page. I want to change the pop-up size to a smaller one, at the same time I would like to keep ...