Questions tagged [theme-development]

Themes create the public (front-end) interface for a WordPress site.

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

Loading a Theme Outside Themes Folder

In developing Wordpress themes I have thus far have simply created a folder in the wp-content/themes folder and gotten working in there, so that I can see live updates on my local site. However I ...
0
votes
0answers
13 views

How to cascade Gutenberg SelectControl component

How can I cascade the SelectControl component in Gutenberg editor. I request all the professionals to please help me out from this. I have 8 months of experience with wordpress and near to no ...
0
votes
0answers
7 views

Baskerville Infinite Scroll: constant loading and flickering

I can’t get infinite scroll to work correctly with Jetpack and Baskerville theme. Problem #1: Posts load as soon as you scroll the page. I have a trigger element (infinite-view) at the BOTTOM of the ...
0
votes
0answers
9 views

Woocommerce forgot password flow [closed]

I'm working on a Wordpress website and trying to figure out the forgot password flow. When I submit the forget password form with my email, I receive an email to reset my password. Example local url: ...
0
votes
0answers
28 views

How to ajaxify wordpress theme

I want to Ajaxify my theme. this is my index.php: <?php get_header(); ?> <body> <div id="loading"> <img id="loading-image" src="wp-content/themes/...
1
vote
1answer
25 views

adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again

I am developing a wordpress theme for themeforest so its for commercial use and adding a custom input field of social media to the user menu in the WordPress dashboard gives error after i click Update ...
0
votes
0answers
12 views

Does single webpage do not need navigation to create a slug in permalink?

I have concern about the permalink in my working project do i need to create a slug for the permalink in navigation. Your answer will highly appreciated. Someone help me stock in
0
votes
0answers
13 views

Customising the comment_form() output

I know I can use the fields object in $args in comment_form( $args ) to change the output of fields in comment form but I want to do something slightly different. First I want to come up with a form ...
0
votes
0answers
9 views

How can I Reuse the media uploader for the block editor

I am building a theme and I want to create a new gallery block type for it without interfering with the original one. For the editor side, I would like to maintain the same interface as the inbuilt ...
1
vote
1answer
26 views

using add_action for a header hook that has an additional parameter

The theme I'm using has a hook inside header.php file to separate the header into two parts, left & right. I want to add some content into the right section but I don't understand how can I add ...
0
votes
1answer
17 views

Functions php shortcode for displaying main menu with no child items

I have the following simple functions.php snippet to generate a shortcode which will add a menu to a Wordpress site. I would like to do two new things so that I can use this in a footer. I'm lazy and ...
1
vote
0answers
17 views

Return the latest post from a custom Taxonomy and Post Type

CPT called: updates Custom Taxonomy called: systems What I was trying to do was loop through all my posts in a CPT and display the '1' latest post from each of my 'I think they're called Terms' (it's ...
0
votes
0answers
9 views

Is it possible to add get_search_form() into wp_nav_menu_objects or wp_setup_nav_menu_item filter?

I want to add Default search box get_search_form() in menu page by using wp_nav_menu_objects or wp_setup_nav_menu_item filter hook.
0
votes
0answers
10 views

Regular expression to find quotes in the post content

I have been trying to get quotes from post content I have failed to find a perfect regular expression for it. How can I filter them out? For Example if get_post_content() returns this below <...
0
votes
0answers
17 views

Display images on front-page static or custom post type?

I am currently learning Wordpress development, building out a portfolio theme. I would like advice on what's the best way(noob question), development wise, to dynamically display featured images on ...
0
votes
0answers
19 views

Can I use 'Featured Image' as a hero image and a thumbnail?

I am finding a lot of great information for using the_post_thumbnail() to use this feature as a post hero OR a thumbnail, but I'm struggling to figure out how to use the 'Featured image' as both in my ...
0
votes
0answers
7 views

How allow admin to manage textual information in a custom post type page?

I have a custom post type allowing to create articles as meals. All that meals are rendered in a specific page. I want to add information about menu & prices on top of that page (like a banner ...
0
votes
1answer
23 views

Block editors annoying warnings

When I am trying to edit or add a post/page using block editor, it shows me some weird warnings then they act like they disappear, but when I inspect the page, I see that they are still there. The ...
0
votes
1answer
27 views

How do I add filter with woocommerce categories?

I have created a loop that displays products, however I have ran into a problem when trying to filter them. I have added in tax_query because that is how to filter the search with taxonomies(based on ...
0
votes
0answers
7 views

Synchronize ports: “NPM Watch” and Localwp are opening local site on two different ports rather than the same one

I develop Wordpress sites in Visual Studio Code on Windows 10. I am using the NPM framework by Laravel as part of my workflow. By running the “npm run watch” script, the changes made in my code update ...
-1
votes
1answer
34 views

How to save the Additional CSS in a CSS file and enqueue it

In Appearance -> Customize there is an option for additional CSS where we can add CSS and save it. I am trying to save this CSS to a file, not into the database and enqueue it. I have successfully ...
0
votes
1answer
13 views

How do I make my terms for each product display via foreach loop? (woocommerce)

This is my current loop to display my products via woocommerce. When I do print_r($category_array); It returns the array, but when I try to use a function to call it so I can do what I want to with ...
0
votes
1answer
15 views

Wordpress Insert ads after every 5th post

Hi I want to create a single archive page where every custom post will get displayed on click of a button and after every 5th post I can add an Ad image which can be fetched as another posts type I ...
0
votes
1answer
20 views

How can I prevent a shortcode div from extending beyond its boundaries?

I have a shortcode for user-defined social media buttons that works well, except for the fact that the div extends beyond its boundaries, meaning that if this shortcode is called in a widget, the ...
0
votes
1answer
37 views

Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0

I am trying to make a email template for my wordpress site. So I tried to include the HTML mockup that was given to me, but instead of putting it directly on the same file, I would like to include() ...
0
votes
0answers
19 views

How should I tackle this situation?

First of all, I'm kinda noob in wp, but I have these theme installed on the website I'm working SKRN - Media Streaming App Template, and I would like to add another theme Education WordPress Theme - ...
0
votes
0answers
21 views

How to display default widgets on sidebar?

I want to display widgets to sidebar while previewing theme on wordpress.org Now I turned on sidebar but by while previewing on wordpress.org the sidebar is empty. Is it possible to display widgets ...
0
votes
0answers
12 views

Gutenberg gallery has no CSS in my custom theme

I just developed a custom WordPress theme and there is one issue I need to fix. While all my pages and plugins work perfectly, I have noticed that using the block editor, the default gallery isn't ...
0
votes
1answer
12 views

Posts Page shows Classic Editor interface not Gutenberg

I have an issue, When I open Pages->Posts Page (the page which I pinned for latest posts) the classic editor interface shows up. I can't understand should it be by default? Because in my localhost ...
0
votes
1answer
30 views

How to retrieve custom meta term of category taxonomy from WP Rest API?

First I added custom meta term called Color for Category taxonomy, see the code below Add new colorpicker field to "Add new Category" screen function colorpicker_field_add_new_category( $...
0
votes
0answers
21 views

White screen of death on index.php page 3 and above?

I am experimenting with custom loops and following the tutorial of the illustrious Chip Bennett, and I actually got everything to work on index.php! ... Up to, that is, page 3. Everything works lovely ...
0
votes
1answer
24 views

Comment Form Development Issue

I am new to wordpress theme development and I am trying to create a custom comment form. I read the documentation and I have a reach a point that I am happy with the layout but I have 2 issues with ...
0
votes
0answers
8 views

wp.customize is undefined in customizer scripts

I have some scripts I am loading in the customizer like this: add_action('customize_controls_enqueue_scripts', function() { wp_enqueue_script('jquery'); wp_enqueue_script('json-editor', 'https:...
0
votes
1answer
77 views

Iris color picker in custom theme option page not saving value

I have implimented the Iris color picker on my theme options page, but clicking 'Save' does not save the selected value, it just resets to blank (or the pre-set value). What am I missing here? ...
0
votes
0answers
17 views

Why excerpt hook not working inside ajax function?

I am using ajax to display more posts. My ajax function looks like this. public function view_more_posts(){ $more_post = new WP_Query(array( '...
0
votes
0answers
11 views

how to make my custom gallery work in wordpress

So am creating a custom theme in WordPress and looking to achieve this I was able to output my category but not too sure how to output the remaining information. As you can see from the image below ...
0
votes
1answer
20 views

How can I find related learndash course id from woocommerce product object?

I have woocommerce integrated with LearnDash. Now I am trying to get the selected course (related course) from the woocommerce product object or any other way (by woocommerce product id). There must ...
0
votes
1answer
15 views

Getting post URL within custom content template

This should be such an easy thing but it's giving me so much headache. I created a content template called content-sticky.php. Added all the code there <article id="post-<?php the_ID(); ?&...
0
votes
0answers
6 views

Table template code as a plugin

I am a bit new in Wordpress and for some circumstances I want to add a table template I have in html, css, js code to my child theme. Someone told me that I should make a plugin to add this template ...
0
votes
0answers
8 views

Add theme to TGMPA

I'm building a theme with the TGM plugin. The theme is Astra (can be any theme), I work with the child-theme. The TGM plugin I installed in the child-theme, that works fine. My problem is how to get ...
0
votes
1answer
16 views

Best way to declare product variables in woocommerce theme development?

I want to be able to use the product variables across all templates. Where should I store them? In Woocommerce templates folder? Example: $productTitle = $product->get_name(); $productSlug = $...
0
votes
0answers
8 views

How to add wordpress template part to a lightbox?

I want to add a wordpress template part to a lightbox. How can I do that? My code here but it not working <a class="venobox" href="<?php echo get_template_part( 'single/map' );?&...
0
votes
0answers
9 views

Next and previous post links dissapear

I am developing a custom theme for my own portfolio / blog site. In single.php I have this code for my next and previous links... <section id="multi-posts-wrapper"> &...
0
votes
0answers
12 views

How to add dependency to customizer input field depending on previous selection?

I have created a customizer that creates buttons for the front page banner. There is the option to select 1 or 2 buttons. I want the fields for the second button to be hidden if it's not selected. // ...
0
votes
1answer
11 views

Post template not applying on theme (potentially rendering as Page template)

I have a Post template, when I select it in the Post options, it saves, but doesn't apply the template on the frontend. Any ideas why this is happening? The posts in question are in the default posts ...
0
votes
0answers
14 views

WordPress PHP Plugin Assign A Column To New Value Isn't Working, But Works For Shortcode

I wrote a code and added to my functions.php on my WordPress site. Theme is a coupon theme. If offer URL is filled, it shows a "go to offer" button; if not filled, it doesn't show. Also ...
0
votes
0answers
9 views

How do I display sub category of a specific category?

My code below is getting data from the category with ID 5. Inside the if statement I want to be able to check for the sub categories with an ID of 8. How do I do this? <div class="row ...
0
votes
1answer
17 views

Child theme modifications not showing up

i am working on a job-portal site and i am little stuck into one situation . I uploaded a child theme and activated it. The child theme is activated successfully but it dosent show changes that i do ...
0
votes
2answers
16 views

Adding a button to wp/aution plugin

I got an auction theme (adifier) and i'm trying to add a button to a specific ads category. Tried a few codes but none seem to work, probably i don't know how to alter it properly. I got the category ...
1
vote
0answers
18 views

How to show user online status on their posts?

I've tried a lot to solve this but of no use. I have a classified wordpress website where users can post their ads. I want to show their online status on the ad they post (archive and single posts as ...

1
2 3 4 5
83