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

All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?

I am trying to create a Custom Premium WordPress theme for a Travel Agency. I am thinking of finishing the theme and submitting it for review. I want this theme to be really useful so I ended up ...
0
votes
0answers
28 views

Is it possible to echo a woocommerce prouct attribute discription?

Rather than displaying the attribute name I would like to display it's description. Is this possible? function woo_specifications_product_tab_content() { // The new tab content global $product; ...
0
votes
1answer
30 views

Custom Nav Walker Displaying Values in Sub Menu

I'm trying to display Submenu links within a Custom Tailwindcss / Vue component that I added within the Nav Walker. Menu Issues header.php <nav class="flex items-center justify-between flex-...
2
votes
1answer
108 views

Retrieve data using wpdb to use for customizer controls

So I have the following code: add_action('customize_register', 'homepage_sections'); //products function homepage_sections($wp_customize){ $wp_customize->add_panel('homepage_sections', array( ...
0
votes
0answers
21 views

Archive Page title issue

I have a problem on my WordPress Archive page. The slug doesn't much with the title. i am using the_archive_title to display the title on the archive page
0
votes
0answers
11 views

wp customizer js preview - use setting based on other setting

I'm quite green at wp js framework; What i'm trying to achieve is that if setting 123 == a then assign setting_x to .header-banner background-color; else if setting 123 == b assign value of setting_y....
0
votes
0answers
25 views

What is an alternative to not using child theme to customize a WordPress theme?

I'm using a premium parent theme and I've been trying to create a child theme from it and found that some "templates" are not just as simple as overidding them. Read this So, that is the other best ...
0
votes
1answer
32 views

php file child theme directory not overriding parent theme php file [duplicate]

I am trying to customize the html in theme/woocommerce/layout-products/grid.php, I have copied the file from parent theme to theme-child/woocommerce/layout-products/grid.php but without any effects. ...
1
vote
4answers
108 views

If I build a custom theme, will it update?

This might be a pretty dumb question, but I couldn't find a straightforward answer on the forums. If I build a custom WP theme using the two Lyra guides at https://www.lyrathemes.com/bootstrap-...
0
votes
1answer
42 views

Adding a second logo next to the main one in header

I want a second logo added to the right side of the main logo on my website, and have it redirect to a different website, when clicked on. I've seen people suggesting editing the code in header.php, ...
0
votes
0answers
29 views

Showing different js file for different theme in wordpress customizer api

I have two themes. All files are same on those two themes but few js files are different. Suppose, When i will select Theme One, I want to to load the whole themplate files and theme-one.js file, in ...
1
vote
1answer
38 views

Classified ad website : which solutions to use? [closed]

I'm currently working on a quote for a company that want to open a new classified ad website. I never worked on a project of this type and I would like to have some advices from more experimented ...
0
votes
0answers
22 views

Create an area for the site visitor

I have a need to create an area for the site visitor, I need to create the following structure, mysite.com/dashboard and myite.com/account I thought I would use rewrite endpoint API, but I only ...
1
vote
1answer
31 views

Theme Development: Starter Content after hook

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: https://make.wordpress.org/core/2016/11/30/starter-...
0
votes
0answers
14 views

wordpress pagination issue

because of some duplication and as i am not getting my desired result i have removed my previous questions i have asked about pagination issue , i am posting again so i might get any help . if ( ...
0
votes
1answer
27 views

Include Minit plugin in theme [closed]

I'm trying to include the Minit plugin in the inc folder of my WordPress theme and calling it in my functions.php file: require get_template_directory() . '/inc/minit-master/minit.php'; However, ...
1
vote
1answer
79 views

I want to get the home root path

I have created a file for ajax in theme/mytheme/ajax-form.php and there was an error while using this code: $db_result = $wpdb->get_results( 'select * from batch_number' ); Error: get_result is ...
0
votes
0answers
12 views

Custom wordpress theme with modular components/widgets

I am new to wordpress and I'm in the process of developing a wordpress theme. I was wondering if it is possible for the user to specify what components they want for a particular page. A component ...
-1
votes
1answer
129 views

using wordpress without javascript

is it possible to develop a wordpress theme with 0% javascript code if you are wondering why, I need to make a blog on TOR network and as you may know TOR browser doesn't support javascript is that ...
0
votes
0answers
26 views

Search Results not displaying for multiple words ( more than 2 words) search

Searching for a single word works as expected. Searching for multiple words that should have returned results shows blank results. Manually changing the "+" character in the URL to "-" displays the ...
1
vote
1answer
140 views

“add_theme_support” for custom footer color?

I've seen theme support (add_theme_support) for "custom-header", "custom-background" and "custom-logo", but not for footer (footer colur or image). Is there no option to let users choose footer ...
0
votes
1answer
52 views

Reason to add a name of the theme like ('menu-1' => __( 'Primary', 'twentynineteen' ),) in PHP?

Sorry for this novice question. I'd like to know why WordPress themes add their theme names many occasions in PHP files (e.g. where 'twentynineteen' is repeated below, this is from functions.php in ...
0
votes
0answers
36 views

REQUIRED: The theme uses the register_post_type() function, which is plugin-territory

I am developing a car rental theme, but I encountered a big problem, when I upload the theme I get the "REQUIRED: The theme uses the register_post_type() function, which is plugin-territory" the ...
0
votes
0answers
16 views

How can I not disable my theme when I want to upload a new version of it?

I am creating my own theme but I frequently make changes. When I try to upload a new version of the theme it sometimes ignores the changes or I sometimes get two themes or on the file system the theme ...
0
votes
3answers
28 views

I have Wordpress setup on primary domain, how do I set it up on its subdomain using the same database?

I have a site www.domain.com with Wordpress installed. I need to create a subdomain for testing a new theme and have it linked to the main site's database. I have manually added the Wordpress files ...
0
votes
0answers
12 views

I want to add plugin files in wordpress theme directory

I added a few lines code in plugin. I want to add that plugins file in wordpress theme to avoid to be overwritten when there is an update. How can I do this?
0
votes
0answers
19 views

(Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme

I'm a WordPress developer but this one has left me scratching my head... I've got a parent theme and a child theme. Works great on my local machine, and was working great on my live server. However ...
1
vote
0answers
52 views

Storefront child theme not applying parent theme [closed]

I've followed, word for word, the Storefront guide for creating a child theme: https://docs.woocommerce.com/document/set-up-and-use-a-child-theme/ I've got a new folder in my themes folder, added a ...
0
votes
0answers
44 views

New theme development while keeping existing theme live

Due to a PHP issue I want to update my website which I built through Word Press to a new theme. Building the new site may take me a month or so I want the current one to remain live. However once I ...
0
votes
0answers
11 views

Are paginated comments required for publishing Themes?

So i implemented nearly every feature into my new WordPress Theme, while checking every Imported Page / Post from the .xml Import i realized that i am missing the Paginated Comments Feature. Is this ...
0
votes
0answers
17 views

Customizer control for including files in functions.php

I have the following include in my theme's functions.php file to add social sharing icons to my theme: require get_template_directory() . '/inc/social-sharing/social-sharing.php'; I would like the ...
0
votes
1answer
24 views

Wordpress child theme, creating a custom php template page

I am currently working on a project that uses a child theme (storefront is the parent theme). I need to be able to code using pure php / javascript (outside wordpress admin). Other custom template ...
0
votes
1answer
21 views

how to ensure responsiveness in wp themes? [closed]

I'm creating my custom theme from a static page I created. CSS seems to work on a static page but when I tried to convert it into a wp theme, it didn't work. I suspected it was because of how I ...
1
vote
1answer
88 views

Gutenberg - editor-font-sizes in functions not working

I'm adding theme support for editor-font-sizes in my functions.php but it doesn’t take affect. Any ideas why? I’ve already added a custom color palette without issue, but having issues with this: ...
0
votes
0answers
69 views

Child theme menu not appearing in Twenty Seventeen

I am trying to add two menus to the same location on a wordpress site. Which menu is displayed will be based on which page is being viewed and can be handled easily with CSS. I created a child theme ...
1
vote
1answer
105 views

create-guten-block in wordpress theme?

I'm working on a wordpress theme and want to replace my shortcodes with gutenberg blocks. I'm new to working with blocks but having looked into it a bit I've decided to try and use create-guten-block ...
0
votes
0answers
20 views

how add custom taxonomy to wordpress permalink

I created custom taxonomy(province) I want add custom taxonomy after post category and before post name in wordpress permalink I want add custom taxonomy to wordpress default post type for example : ...
0
votes
0answers
14 views

Child theme isn't appearing on the menu

I'm a beginner to Wordpress in general, and i'm practicing on local. So far i simply installed WAMP and put my blank site on it. I want now to pick my theme and start tweaking it a little. I looked ...
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:       ...
0
votes
1answer
24 views

How to make menus, footer, sidebars multi language

I am totally new to WordPress. I recently encountered this problem. I want to make my site 3 languages. I searched a lot and understand how to change the posts and pages languages with plugin, but the ...
0
votes
1answer
66 views

How do I remove header/page-title image in farvis theme? [closed]

I'm working with farvis theme. In that theme I removed background image in customize >> page titles & Breadcrumbs >> background image >> remove. But after I clicked save and reloaded the site ...
0
votes
0answers
37 views

Custom Field in User Profile Not Saving Data

I was trying to add a custom field to "Your Profile" section wordpress. I did that but when I enter any data and hit update, the profile gets updated. But the custom input remains empty even adding ...
1
vote
1answer
68 views

WP_bootstrap_Navwalker_issue [closed]

I have put a navwalker in my bootstrap wordpress which gives me a fatal error Fatal error : Uncaught Error: Class 'WP_Bootstrap_Navwalker' not found in A:\xampp\htdocs\wordpress\wp-content\...
0
votes
0answers
68 views

Menu to the right of screen on desktop using Bootstrap 4

I'm fairly new to WordPress development and would love to learn as much as possible. I am building a theme from scratch and using the wp-bootstrap-navwalker (https://github.com/wp-bootstrap/wp-...
0
votes
1answer
32 views

Which cache is kicking

I have been struggling with a site that I inherited from another developer. My main problem is that, changes I make in the css file of the template don't get picked up right away, indicating that ...
0
votes
0answers
41 views

WordPress panel is not loading after plugin activated with error: HTTP ERROR 500

when i try to activate Yoast Seo Plugin, my WordPress panel stop loading and the browser displays: HTTP ERROR 500. I checked my error_log file and there was this error: call_user_func_array() expects ...
0
votes
0answers
18 views

Different WP Rest API custom endpoints across different themes

I have created a custom theme on Wordpress with custom WP Rest API endpoints. This is how I have set it up. Theme name: Theme 1 Added below line in functions.php require get_parent_theme_file_path( ...
0
votes
1answer
172 views

How to test another theme in a live WordPress website instead of live preview?

I want to implement a new theme called Hepta on my current website, but when I test it using the live preview, it shows me limited content and features as it imports most of the contents from the ...
0
votes
1answer
93 views

How to get current post user id

I have some posts, each post have different authors(users). I save each author image avatar in user_meta table. Now i want show each author avatar in self posts. i get user_id with ...
0
votes
1answer
57 views

When the user entered an unauthorized url redirect to login page

I have custom account page for user, i want the users who are not logged in site when enter http://example.com/account redirected to a custom login page. Here My code function setup_user_panel_url()...