9,219 questions
2
votes
1
answer
50
views
Wordpress site causes Android Tool Bar Color change
I cannot for the life of me figure out what setting is turning my bar this green color in wordpress.
any suggestions are appreciated, I've tried everything in appearance theme elementor and nothing ...
Advice
0
votes
7
replies
98
views
Layout rendering issues
The page in question is: The Robertsons of Aldbourne
Please see how it renders vs the Block Editor representation below.
Q: Do I have to rebuild page from scratch?
Q: I have seen some 6.9 resolutions. ...
0
votes
1
answer
145
views
Why does the child theme CSS not override the parent theme header styles?
I have created and activated a WordPress child theme. The site loads correctly, but CSS rules in the child theme style.css are not overriding the parent theme styles for the <header> element.
...
Advice
0
votes
1
replies
56
views
Envato Theme License Usage: Can One Theme Be Used for Multiple WordPress Websites?
I have purchased a WordPress theme from Envato and I would like to clarify the licensing and usage terms before proceeding with my projects.
I am planning to develop two separate WordPress websites ...
-1
votes
1
answer
97
views
White Screen, Translation Loading Warning, and Header Errors with Medservice Child Theme after WordPress 6.8.3 [closed]
My site shows a white screen and some PHP warnings when I try to:
Activate any plugin
Log in to wp-admin (if logged out)
Save changes in the page builder
This happens only when using the Medservice-...
0
votes
0
answers
83
views
Post content appears on multiple pages, so how should I handle the post content in search results?
I have a site where post content gets used as components on several pages. There's also some nested post content which makes it more complicated.
This is a problem in the WordPress search results, ...
-3
votes
1
answer
64
views
Wordpress - Page not scrollable when menu is expanded on dropdown
I'm creating page on Wordpress. Page is ready here is a link https://enjustudio.com.pl/
it is Hestia theme for Wordpress.
The issue what I found is that when I open this page on Mobile (Iphone 14) and ...
1
vote
2
answers
100
views
WordPress: How to query posts by an array of IDs while preserving order
I have an array of post IDs stored in an option and I want to display these posts on the front page in the same order as the IDs.
Here is my current code:
<?php
$data = opt('blog-posts-home')['post-...
0
votes
1
answer
154
views
How to dynamically detect the active page builder in use on a WordPress page
I am developing a WordPress plugin to analyze which page builder (e.g., Elementor, WPBakery, Divi) is actively being used to render the current page, not just which builder plugins are installed and ...
0
votes
2
answers
213
views
Security issue with a WordPress plugin.plugin writes a log file to the uploads folder, which is publicly accessible via the browser on Nginx servers
I'm running into a security issue with a WordPress plugin. The plugin writes a log file to the uploads folder, which is publicly accessible via the browser on Nginx servers.
Originally, the log was ...
1
vote
1
answer
73
views
get_template_directory() returning child theme instead of parent theme when running phpunit
I'm trying to set up testing for a Wordpress child theme. I've use the wp-cliwp scaffold theme-tests command to scaffold some tests. Inside of my child theme's functions.php file, I load some ...
0
votes
1
answer
212
views
How to turn off the default animation or disable animations for elements in WordPress? [closed]
WordPress Theme: AIPT Modeltheme
I have been through files like animate.css but I can't find a default setting. Chat GPT advised me to look for data-animate= and then edit it, but I can't find that.
...
1
vote
1
answer
247
views
Cannot edit page content when using custom template in WordPress block theme
I’m building a custom WordPress block theme and ran into an issue with how templates work.
Here’s what I’ve done so far:
Created a few custom blocks.
Built a template (subservice.html) using those ...
2
votes
1
answer
102
views
Wordpress post showing author who revised post instead of original creator
Using WordPress Version 6.8.1
I created a post in WordPress blog from user1 and made some revisions using user2.
Now, under the post, it shows user2 as author instead of user1.
I tried editing the ...
-1
votes
1
answer
70
views
How to create a nested repeater (repeater inside repeater) in Redux Framework?
I'm trying to create a nested repeater using the Redux Framework in my WordPress theme options panel.
Specifically, I want to define a list of cities (branches), and for each city, I want to define ...
-1
votes
1
answer
85
views
how to make a WordPress plugin that alters the http status of 404 pages to 200 and uses the current theme to display 404 pages output
I am working on a plugin that changes the response for 404 pages so it issues HTTP status 200 instead of 404.
I already have the status change working using code like this:
function HTTP404Template()
{...
0
votes
1
answer
88
views
real count of view a post on wordpress
I'm building a view counter for blog posts in WordPress, and I want each real user to increment the post view count only once, not every time they refresh the page.
I tried to handle this with cookies,...
0
votes
1
answer
69
views
Wordpress remove_action and wp_deregister_script don't work
I try to remove script from the footer in my Wordpress page.
Here is the end of my footer:
<?php remove_action('wp_footer','woodmart-theme-js-after');?>
<?php wp_deregister_script('woodmart-...
-2
votes
1
answer
139
views
how to customize woocommerce notice with toast? [duplicate]
How can I show WooCommerce notices like success or error messages using Toast, Modal, or Alert without creating AJAX functionality?
For example, after a user purchases a product, I want to show a ...
1
vote
0
answers
148
views
WooCommerce custom ajax product filter
I am trying to build a custom ajax product filters. My main objective is when user is on X category page, I will show him some size option(as checkbox) for filtering. So when user check single/...
1
vote
0
answers
76
views
Constants defined in functions.php are not available to other functions in the same file
I have defined two constants in my functions.php file using the set_current_user hook.
function define_constants() {
if ( ! defined( '_S_IS_USER_LOGGED_IN' ) ) {
if( is_user_logged_in() ) {...
1
vote
1
answer
142
views
WordPress Site Kit: Add Sign in with Google button in theme header without redirecting to login page
I'm using the Site Kit by Google plugin on my WordPress website and have enabled the Sign in with Google feature. Now, I want to add a Sign in with Google button in my theme’s header that directly ...
0
votes
1
answer
75
views
Issues with Parsing Classic Editor
I'm working on a WordPress theme using Sage 10, and I'm having trouble parsing the content created with the Classic Editor (without blocks) in the single.blade.php file.
Here’s how I’m retrieving the ...
1
vote
0
answers
140
views
Wordpress - Gutenberg icon block not showing in the edit but showing in the block panel and website
I am starting to build an Open Source and Free theme based on bootstrap.
Basic things as layout and using PHP to create a custom homepage, now I need to make custom blocks.
And here begins my problem.....
0
votes
1
answer
199
views
Is it possible to enqueue script only when block variation is active/present
I am working on a WordPress FSE theme, and I'm using block variations.
I have a query block variation to create a slider of posts, and everything is working. But the slider requires extra javascript ...
0
votes
0
answers
30
views
How to get image paths to be used in page templates?
I've been developing a new WP theme which is aimed to be installed by the client. I'm making different HTML templates for the different site pages.
I need to provide all the images used together with ...
-1
votes
1
answer
79
views
How to change the language for WooCommerce strings from ordering filters in Featured Products
I have a WordPress website with Phlox Pro theme, and I am trying to change the language of those text strings in the screenshot below:
I already try with loco translate and some other plugins to ...
-1
votes
2
answers
2k
views
I want to gave max-width to container in WordPress Elementor
How can I define the max-width for the container? I don't have the Pro version, which means custom CSS doesn't work properly. I need an alternative method.
I tried setting the container width in the ...
1
vote
0
answers
41
views
clubs not assigned automatically in matches created by wpforms in sportspress plugin
I am working on a WordPress site using the SportsPress plugin and WPForms. I have a form created with WPForms that includes checkboxes populated with all existing clubs and a dropdown menu for the ...
0
votes
0
answers
52
views
Largest Contentful Paint Error Website Performance
I have a website in WordPress. I am facing a performance error and I don't know what to change in order to make it more efficient while using PageSpeed Insights from Google. I have tried several ...
0
votes
1
answer
70
views
Action hooks in plugin shortcode not working in Wordpress child theme
I'm developing a custom plugin that uses a shortcode to display content on specific pages. Locally I had the Twenty Twenty-Four theme activated for development. While, in production, I'm using ...
1
vote
0
answers
1k
views
Elementor not loading the correct font on the frontend, even though it looks right in the backend
I’m having trouble getting a custom font (Bebas Neue) to load correctly on one specific page of my WordPress site. In the Elementor editor (backend), the correct font (Bebas) displays just fine, but ...
1
vote
1
answer
258
views
Remove <!-- wp:paragraph --> in WordPress
I decided to delete the codes inside to make the page load faster, but I didn't find a function for it.
I mean these codes:
<!-- wp:paragraph -->
<p>test</p>
<!-- /wp:paragraph --...
1
vote
2
answers
303
views
Get post's author data in a shortcode within the WordPress loop
I am building a block theme for Wordpress.
I wrote a shortcode function that is supposed to output the message "By [author's display name with author's link]".
More specifically, I am trying ...
0
votes
1
answer
176
views
How to find out if WordPress is using GD or Imagick?
Wordpress is producing lower quality images when images are resized from Media -> Library -> Edit pages.
I've used following code in functions.php to force WordPress to use Imagick instead of GD....
0
votes
1
answer
64
views
Custom post class for custom page Template (Timber V 2.X)
In 1.X version of Timber I was able to create a custom class to extend a Timber\Post:
class MyPage extends \Timber\Post {
public function __construct($pid = null) {
parent::__construct($pid);
...
0
votes
1
answer
257
views
How to change author list in Authors dropdown in edit page display all user role if user logged as admin type of role
Author dropdown
I am using classic editor and in edit page herer is a 'Author' dropdown and I want to modify value of this edit page (post type = 'page') authors dropdown. I want to show all users in ...
0
votes
1
answer
62
views
Is this a theme bug or I should do some css adjustment
This is the first time I use Wordpress theme Classipress.
Two questions:
When I open the Widget customize, the blocks are there, but they are transparent.
When I change the title of a block, the ...
0
votes
1
answer
82
views
Scroll to reveal content? [closed]
I’d like to create a div where the content div is hidden in its initial state. The content div would be 'revealed' from the bottom of the parent div as the user scrolls down the page. I'd also like to ...
1
vote
0
answers
106
views
Custom function into custom php file | Wordpress
I have a file called custom_functions.php with all my functions used to my page test.php.
If I insert this code into functions.php, it works well
require get_stylesheet_directory() . '/class/...
1
vote
1
answer
111
views
HTML Button w/ jQuery $('CLASS').on('click tap touchstart', function(event) not working on mobile (Wordpress BricksBuilder)
I've edited the code from the last time I posted this question using some advice, unfortunately the 'DUPLICATE' that I was linked to also did not fix the problem. Here is the code I'm working with:
&...
0
votes
1
answer
113
views
How to implement a different header on each page with WordPress Waymore theme?
I am using the waymore theme of popularfx in WordPress and want to change the header image in my About and Service page.
Currently, the same header image is showing on all pages, but I want a ...
0
votes
1
answer
276
views
Newsmatic - 1.3.11 There was an error in importing demo. Please reload the page and try again
I am new to WordPress, and I installed it on the server under my domain; there is a new theme called "Newsmatic - 13.11". I'm trying to import the demo of that theme, but after 50%, it's ...
1
vote
1
answer
104
views
get_theme_file_uri does not work for scripts…
Im trying to turn a web template into a static Wordpress theme and get_theme_file_uri resolves in the url/the files instead of wp-content/themes/thetheme/js/plugins/swiper.min.js
so instead of looking ...
-1
votes
1
answer
296
views
make the mobile navigation letter larger size in wordpress theme twenty twenty four
I need help with this site. I’ve been trying to make the mobile navigation larger but the letters are still small no matter what. What could i be doing wrong this is one of my css codes that i found ...
0
votes
0
answers
223
views
Where to include conditional logic in Wordpress block style templates?
I am trying to rewrite a classic WP theme as a block theme.
In my current classic theme, where I display a list of posts, I use php logic to display or hide certain elements. E.g.: If a post includes ...
1
vote
1
answer
132
views
Wordpress PHP - Empty menu links generated by old Artisteer theme
I am helping recover a compromised website, which was using a custom theme generated by Artisteer v4.3.0.60745
You can view the archived site here.
I am trying to get it all running over a fresh local ...
0
votes
2
answers
84
views
Wordpress Code to display categories like this
I'm currently struggling with displaying custom taxonomy terms in a WordPress theme, and I can't seem to get the desired output. I'm using a custom taxonomy called genre, which is attached to a custom ...
0
votes
3
answers
191
views
How can I add preloader in my custom wordpress theme?
I'm trying to add preloader on my theme. When I'm using this code in functions.php then It work fine. But I'm not interest use CSS & JS on functions.php
Please help me.
add_action('init', '...
0
votes
1
answer
136
views
Undefined array key 0 in wp-includes/plugin.php line 1001 [closed]
The problem's origin is not directly related to any 3rd party plugin, but rather to a custom code. The error occurs in the Wordpress core function _wp_filter_build_unique_id: https://github.com/...