Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
846 views

Custom CSS is overwritten by WordPress?

So I made a new website for a club/ organization. My task is to update an old website on WordPress with this new website. I transferred all my HTML pages and CSS/JS files. However, some of my custom ...
0 votes
1 answer
841 views

jQuery Validation plugin and Bootstrap 4 CSS classes

I'm using jQuery Validation plugin to validate a WordPress theme form. I'm using also Bootstrap 4 so I'd integrate the Bootstrap validation classes ("is-valid" and "is-invalid") with Validation plugin,...
0 votes
2 answers
1k views

How to edit wc_get_template_part for archive products

I want to set a custom style for displaying prices on sale in woocommerce archive page. I could do that in single-product.php file but in archive page its just wc_get_template_part( '...
2 votes
4 answers
14k views

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

Recently I 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 seems to work fine,...
-1 votes
1 answer
1k views

How to optimise Text to HTML ratio for SEO by separating the HTML into multiple files?

I have run into an issue with my Wordpress/Elementor site and I hope you guys have any advice. I did an site audit with Semrush, and as it turns out the ratio of text to HTML is only 1-2% but it ...
0 votes
0 answers
7 views

Twenty Twenty Four child theme stylesheet is not being enqueued in admin panel when editing pages

I have created a child theme of Twenty Twenty four. I have a styles.css in the child theme directory and I have enqueued the stylesheet to load in the child theme's functions.php: <?php /* * ...
0 votes
1 answer
714 views

How to add meta fields to custom taxonomy add/edit page?

I have a custom taxonomy 'issue'. I tried to add some meta fields to the add/edit issue pages in the dashboard using the method explained by Ohad Raz (https://en.bainternet.info/wordpress-taxonomies-...
0 votes
1 answer
963 views

functions.php / replacing div's with new ones?

I'm not sure the best way to tackle this one: I have a menu I saw and like and want to use it as a basis for my own. I have the CSS for it. On the page it comes from its all labeled differently to my ...
1 vote
3 answers
15k views

How to disable the hover effect in Wordpress and Elementor?

Hi all! I created a products section via Elementor in Wordpress. The thing is, that I do not know, how to disable the hover effect.
0 votes
1 answer
3k views

How to automatically add custom classes to headings in content area

Is there any way I can automatically add a custom class to heading tags (like h1, h2, h3, etc..,) in the content area. I know that I can manually add a class to a sub-heading from the post editor, but ...
0 votes
1 answer
832 views

Website is not showing updated CSS

I have an issue with my website not updating when I make edits to my CSS file. I believe it's sass CSS, and think something may not be linked where it should be. I use SiteGround to edit my code (File ...
1 vote
3 answers
713 views

Wordpress Customizer not setting default value upon initial install?

I'm having some issues getting the default values set in the WordPress Customizer to save to the database upon initial install without first having the user save the Customizer to set them. I've tried ...
0 votes
2 answers
1k 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
2 answers
2k views

How to remove class="wp-block-heading" from Heading tags?

WordPress is injecting class="wp-block-heading" to all the heading tags, like h1, h2, and h3. Even though I don't need it in my style sheet. I tried removing it with the following codes, but ...
0 votes
2 answers
809 views

Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)

I am using this to load css styles in the admin area (for any user who is not an administrator): function wpse_admin_styles() { if ( !current_user_can( 'manage_options' ) ) { echo '<...
1 vote
1 answer
1k views

Changing CSS FilePath for All Pages

So I need to change multiple CSS Style sheet paths for a WordPress website. They rely on a domain that is no longer going to be active. What is the best way to apply the path of these CSS file to all ...
0 votes
1 answer
1k views

How to enqueue stylesheets in child-theme functions.php?

I know this topic is old hat, but I still got issues with that. I use the elementor child-theme and try to enqueue the following stylesheets hello-child-theme-folder: style.css hello-child-theme/...
0 votes
1 answer
1k views

Pseudo class :before don't working in a specific button

Currently, i'm building an ecommerce and a small button was running with pseudo class :before suddenly stopped working.The site run WP with Divi and Woocomerce. I wish the bellow code back to run: ....
0 votes
1 answer
758 views

Disabling double vertical scrollbar and horizontal scrolling?

I have a WordPress site here: www.horizonimaging.co.uk and at some unknown point a month or so ago double vertical scrollbars appeared on the site. I was able to fix this (remove the second vertical ...
0 votes
3 answers
2k views

WordPress loads old style.css, then loads current one

I'm new to WordPress, so I'm not really sure how it works, but I've been editing the theme by changing wp-content/themes/<theme_name>/css/style.css, then uploading this to the website via FTP. ...
0 votes
0 answers
74 views

Custom Theme Additonal CSS "<" and ">" are transformed to "&gt" and "&lt"

Im using Elementor Child Theme and in there im sometimes writing "Additional CSS" and till yesterday everyting was working correct. But since today "<" and ">" are ...
0 votes
1 answer
878 views

Add WordPress Core CSS into editor-style.css

I am using a custom child theme (from Parabola, Cryout Creations, lastest version), but it seems that the editor-style.css file is not up-to-date. Rather than rewriting everything, I would like it to ...
0 votes
2 answers
841 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 ...
2 votes
2 answers
2k views

Block content rendered with inline CSS. How do I reuse it in a headless setup?

I'm working on a Headless Wordpress setup. I want my Wordpress posts rendered elsewhere. I want to write these posts using the basic Gutenberg block editor, and show them on a separate non-Wordpress ...
0 votes
1 answer
27 views

Wordpress custom css/js version not loading correct

$js_version = filemtime(plugin_dir_path(__FILE__) . 'js/script.js'); $css_version = filemtime(plugin_dir_path(__FILE__) . 'css/style.css'); $timestamp = time(); ...
0 votes
3 answers
904 views

admin panel - How to remove "delete" button from category editing page

i want to disable, hide or remove delete buttons from category page I tried editing functions.php with no luck: add_action('admin_head', 'hide_category_buttons'); function hide_category_buttons() { ...
0 votes
1 answer
888 views

How to enqueue google fonts if we use directly in style.css

My theme has "selecting differrent google fonts options" So for that we need to load several .woff2 files. So i have added 2 type of woff2 files in Top of CSS file (Bitter & Lora). but i don't ...
0 votes
1 answer
749 views

Add HTML input tag to to site navigation

I'm building a site using the twentytwelve theme. I need to add an input text box situation on the far left of the menu navigation bar. Here is the HTML from Header.php and the css from style.css. ...
0 votes
1 answer
2k views

How do I make a child theme's style.css load after plugin css?

A client website is using Ultimate Visual Composer Addons plugin, which load its CSS file after the parent and child theme stylesheets. How do I load the child theme stylesheet after the Ultimate ...
1 vote
1 answer
1k views

current-menu-item class in CSS

I have created one main Page(Home Page) and many custom links in wp-admin. All custom links are linked to sections of Home Page. Example: Custom link About Us has a URL = #section1 and in my code I ...
0 votes
2 answers
991 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 ...
0 votes
4 answers
16k 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 ...
1 vote
3 answers
823 views

Insert a group block inside a list item

It seems like the only thing you can put inside a list item is text (including links), inline images, and lists. But I would like to insert a whole group of blocks inside a list item. I was able to do ...
1 vote
1 answer
3k views

How to organize priority of plugins CSS files?

I'm developing website with theme (Astra Pro with child theme) and plugins. While I'm checking my performance in Chrome Dev Tools trace shows non-critical stylesheets with high priority. Example — ...
0 votes
1 answer
19 views

Apply Style variation to specific pages

I notice wordpress themes come with the ability to have "style variations". Can one apply a style variation to a specific "page/ post" as oppose to a block or section or global ...
1 vote
2 answers
976 views

Get Sub-Menu Dropdown to Show Over Page Content Avada

I'm having an issue where my submenu is being hidden behind the page content that says "High-Quality LED Lights Without Breaking The Budget Our high-quality LED lights provide superior ...
0 votes
1 answer
732 views

How to change <p> in css with a custom theme?

In a WP site developed with a custom theme, I saw that font size of the paragraph tag seems to be defined in /wp-content/themes/nameofcustomtheme/style.css?ver=1.1.11 I have tried to change font-...
0 votes
3 answers
2k views

jQuery function not working in WordPress but works in jsfiddle

EDIT - This is solved thank you for your help after the suggestions below didn't solve the problem I refreshed my browser cashe and now my functions work... However I then realized they only work on ...
0 votes
2 answers
9k views

How to set different color in a select box due to selection with css

I have a select box with 2 options. In the selct area the options are green for 1 red for 2 I had been able to set green also as the color for the predefined option. Now I would like to change this ...
0 votes
0 answers
26 views

How to delete widget in Wordpress?

I would like to remove the widget that is in the attached screenshot. Recently I managed to write a short code in the additional CSS code in Wordpress. Unfortunately, I changed the theme and this code ...
0 votes
4 answers
1k views

Why do images inserted in the post content via the_content() go off the max-width?

I have many containers over the said image itself such as col-md-10 which defines a max-width of 80% or so, this is how I generate my post: <article id="single-post-<?php the_ID(); ?>" <?...
0 votes
1 answer
1k 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
1 answer
1k views

Custom CSS for full post vs. excerpt (Content Options)

Is there a way activate "Full Post" via Custom CSS or any other way? Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options Here below is what my ...
1 vote
3 answers
2k views

Enqueue All Stylesheets Found In a Theme Folder

Is there a built-in Wordpress function that will allow you to enqueue all stylesheets for a particular theme? I have a directory structure that looks like: -my-custom-theme -css -header....
0 votes
1 answer
76 views

How do I make a shortcode to display Dokan seller badge list? [closed]

I am going to add the Dokan seller badge list to the single product page by creating a shortcode so that the tooltip is also displayed. Thank you for your guidance.
0 votes
1 answer
51 views

Is it possible to remove the "Shop" title from the WooCommerce catalogue? [closed]

I own and run a gaming website. The games are listed in a WooCommerce catalogue (this was set up prior to my acquisition of it). Whenever the games catalogue page is loaded, the title "Shop" ...
1 vote
1 answer
1k views

How create a Shortcode with hover and complex options

I am wondering how do you do when you have to create a shortcode with multiple hover or complex options ( gradient, boxshadow etc, thing that can't be inline ). How do you generate the css. I don't ...
0 votes
1 answer
6k views

Background image call problem

I simply can't find the correct way or working way to do this. I've made an alternative header and added an option with redux theme option to have the alternative header. I've also made a custom-css....
0 votes
1 answer
20 views

How can I get the categories and subcategories separately?

I am using this code to get the categories and subcategories from the reference page. It is quite good because it allows me to sort them hierarchically. But I would like to give them two different ...
0 votes
1 answer
743 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 ...

1
2 3 4 5
57