A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [theme-development]

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

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

Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme

I am trying to use the separate components of the_custom_logo() function to create my own display for the logo. Please can someone inform me as to how I can access the url and the image reference ...
0
votes
1answer
12 views

Use a filter on menu items that have children

I have a nested dropdown. On elements that have children, I would like to add a chevron beside the link text. The current HTML looks like this: <ul class="primary-menu"> <li class="menu-...
0
votes
1answer
33 views

How can I override a require() used in functions.php of parent theme to my child theme

I have created a child theme for a Theme, Every thing works fine, except there are some files being required in functions.php of parent theme which I want to override it from the child theme. They ...
0
votes
1answer
9 views

cpt not display inside nav menu

I have created a cpt to realize a dedicated section of a website and I want to show it inside the navigation menù with the various post created under the cpt linked as children. I've noticed that the ...
0
votes
1answer
22 views

Highly stylized pages

I'm building my own WP site, with its theme from scratch, and I need 2 very customized pages, including the front page. To give you an idea, a bit like this. (mine will be more simple though) That ...
0
votes
1answer
36 views

Adding country tags automatically

I want to show country flags on post cards.My plan is showing flag icons with below code: <img src="/icons/<?php echo $tagName; ?>.png" /> However I dont know how can I add country tags ...
0
votes
1answer
29 views

How can i Limit My Wp Theme To Only One Site

i created my first wp theme and i want to use it alone, i wouldn't like any other person(wp site) to be able to use it even though they got it by chance, Please is there a way i can put some sort of ...
0
votes
0answers
8 views

display woocommerce shop and categories featured images and names

I'm having some trouble with woocommerce. I want to add a page cover for categories and for the main store page and display on it all the links to the products catrgory. I need to fix two problems, ...
0
votes
1answer
23 views

How to use posts as tabs in a custom page?

everyone. I'm a beginner at coding/Wordpress and need some help with a custom page I'm developing right now. The idea is simple: A list of items on the left An image with a description below on the ...
0
votes
1answer
12 views

Should I set a page as “No-index” if I include it's content within the front-Page.php via this method?

So I set my home page to "Your latest posts", and included this bit of code to get the info from a pre-defined page so that I can edit my home page, and get access to a "recent posts" grid with ...
0
votes
0answers
11 views

wordpress post category shows double`

my question is i wanted to created a filter for example portfolio filter with mix it up java script plugin i have one problem i wanted to show only one post even if it has been assigned multiple ...
0
votes
1answer
13 views

Custom theme development additional pages

I am developing a new theme based on my html portfolio. I understand the hierarchy and actually have it working 100% in Wordpress. My confusion comes when trying to figure out the best place to put ...
0
votes
1answer
19 views

Trying to get pagination working on WP_Query() post grid

So I've been developing my own theme as a learning experience, and I'm at a loss regarding how to get pagination working. I've tried several things before getting to this point and asking, I just seem ...
0
votes
2answers
23 views

write custom woocommerce templates and forms

I've started to customize the woocommerce default templates by using the hooks as is suggested on the documentations. I have two question about this aspect, I want to understand if I can write my ...
-3
votes
0answers
14 views

How to make auto plugin installer [closed]

I want to install some plugins which some of them are from online wordpress plugin database also some of them are from in theme directory automatically for my theme.Shortly, I want to make one click ...
0
votes
1answer
24 views

Dequeue a style file which is making website load slow!

I have a website running on GrandNews WordPress Theme (https://themeforest.net/item/grand-news-news-magazine/15885465) and loading via KeyCDN. The site is loading a CSS file located at websitedomain....
0
votes
1answer
12 views

alternate left - right content inside the loop

I'm not sure if this were asked before. I want to obtain a similar effect where the contents and the images are alternated for each post, one time the image is on the left and the text on the right ...
1
vote
1answer
9 views

Autoload via composer in plugin interference

I am using wordpress 5.3.x. and I am using "fabpot/goutte": "^4.0" in my composer in one of my wordpress plugin. In my theme I am using "fabpot/goutte": "^3.8". Both are using require_once 'vendor/...
0
votes
0answers
14 views

Text widget is placing everything side by side. I want to post it above

As I add text widgets within a page in my home screen, They are going side by side. I have three text widgets as if there are three columns of text in my page. I like this, but i want to put a title ...
0
votes
2answers
23 views

How to display home page last modified date in anywhere of wordpress theme?

i just display my recent published and modified posts in homepage (index.php). how can i display last modified date of my home page?
0
votes
1answer
11 views

Divi - How can we show background video on mobile

By default, Divi theme forcibly stops background videos from ever displaying on mobile devices. Is there a way around this, even if not all devices are supported, at least to show the mp4/webm to the ...
1
vote
1answer
24 views

How display id of most recent modified post in wordpress?

Hi somebody please help me. I need display id of last modified post in my wordpress template.
0
votes
0answers
12 views

how change add to cart button text and show text with added quantity of product on shop page without page load

function change_button_text( $product_id, $button_text ) { foreach( WC()->cart->get_cart() as $item ) { if( $product_id === $item['product_id'] ) { $itemq = $item['...
0
votes
0answers
13 views

Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)

I have been trying to change my code from my index.php to a custom page template instead as this is better practice I have been told. The original code for the index.php does not work anymore so I ...
0
votes
0answers
14 views

WordPress Virtual pages for translations

I will really appreciate your help for a detailed guide about how can I achieve the following: Please don't refer to external Plugins since I don't want to use them. I'm developing my own WP theme so ...
1
vote
1answer
17 views

Wordpress page templates in a directory

I'm trying to organize my page-$slug.php files all inside a folder, i saw in a post that it was possible to store the files inside a directory in the root path of the theme... i tried to store them ...
0
votes
1answer
33 views

Custom WordPress post query for displaying time-released content on website

I am trying to implement a "content drip-style/time released content" subscription system using a WordPress query that filters and selects content from a custom post type using set parameters and ...
0
votes
1answer
51 views

saving row as a template using WPBakery Page Builder is not working

I am working on theme development and using "WPBakery Page Builder" for creating pages. I am getting below mentioned error while save row as template by opening edit row settings and click on gear ...
0
votes
1answer
10 views

Missing tested up to on readme text validator

My theme has almost 9 problems which I have to fix. One is readme text where the reviewer says it has to fix like license. And he provided me the url to check validator. Here https://wordpress.org/...
0
votes
0answers
12 views

Converting fopen/fwrite to WP_Filesystem

I'm using code from the Easy Theme Child plugin in my theme, but it fails the Theme Check plugin with the following error: WARNING: fopen/fwrite was found in the file grtsth-easy-child-theme-...
0
votes
1answer
21 views

SIte logo is not displaying

Am trying to display site logo in my website, which i have uploaded under site-logo section comes under theme->customize->logo->publish I have added following code in functions.php for support ...
0
votes
0answers
17 views

Store user form submitted information in post type

I'm building an internal peoples directory using wp for a client. I'm styling the search form and the search result page that are working fine. I need some help to understand what's the better ...
0
votes
1answer
42 views

400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true

As Salamu Alaikum, I am working wp_ajax and try to upload a file through ajax. When I processData: true it returns error illegal invocation on file upload. But when I set processData: false it returns ...
-1
votes
0answers
15 views

Why does my website sometimes display broken?

My website is having issues in displaying correctly consistently. Sometimes it works and other time it doesn't and this also varies for computer and mobile viewing. Currently, from what I can see only ...
0
votes
2answers
21 views

How to make function appear in sentence?

I have a function to show theme details and want to put it in a sentence. Like: The "theme" developed by "author". And it will contain links. I tried printf, did get the correct result. function ...
1
vote
2answers
35 views

Child theme style.css versioning

I've been breaking my head on this one. I have a child theme and made changes to the style.css document. These changes did not show up in the reload of the page because there is no mention of version ...
0
votes
0answers
19 views

WordPress does not load page template or anything else, just empty page with header and footer

So, I have this issue, where this happened two times. There is two pages - blog (which is based in index.php) and Thank you page (page-thanks.php). In some conditions, these two are blank and in "...
0
votes
0answers
11 views

create custom login page

I'm looking for a way to create a custom login for a wordpress based app. I'm restricting the access to the website to members only and I have this code for now in my index theme file: <?php ...
0
votes
1answer
25 views

400 Bad Request, in wordpress theme development, wp_ajax

As Salamu Alaikum, I am developing a theme and I have tried every way of getting a successful ajax request and it is still showing me the 400 bad request error. And there is no solution I found going ...
0
votes
2answers
24 views

Lightbox not showing image caption

I am using Jevelin theme and their Lightbox should showing image caption from alt attribute. Hovewer it doesn't works. Here is the link: https://www.coleopterafarm.cz/galerie-zlatohlavci/ I am ...
0
votes
0answers
11 views

Manage custom form with an upload field on widget frontend

I want to create a particular component for my theme, the component is supposed to be a form to display on the front-end to logged in users only and will give the user the ability to upload zip/rar, ...
0
votes
1answer
129 views

Wordpress core jquery version file not loaded?

I try to put a simple <textarea> with an emoji picker (https://github.com/mervick/emojionearea) in my wordpress site (with buddypress installed, actually I put this in buddypress messages). The ...
0
votes
0answers
11 views

Adding bank withdrawal form fields on vendor dashboard in dokan

I want to add bank withdrawal form fields on vendor dashboard in dokan , which i have partially achieved with the help from this ref link. Now all i want to do is to display the field data that i ...
0
votes
0answers
7 views

open media libray in custom widget

I've read a nice tutorial on how to implement the media libray to select or upload images as a background of a custom widget, but I have a problem, the media library will not open and I will get also ...
0
votes
1answer
18 views

How to escape html generate by a loop

I have the following code which is flagging a warning that I've been asked to fix by my theme reviewer. WARNING All output should be run through an escaping function (see the Security sections in the ...
0
votes
0answers
39 views

WordPress Theme: What is the right way to put inline CSS loading from a CSS file

So, I have the main Wordpress Theme file, the style.css, and I would like to add some inline CSS to the header. For that, I have a separated CSS file, mainly for organisation and because is more easy ...
0
votes
0answers
7 views

Open media library from custom widget

I have made my first custom widget by following the guidelines of the theme handbook. It's not perfect but working nice, I have only some problems with the $args variable that was set on the ...
0
votes
0answers
14 views

wordpress custom category post shortcode

Does not work this code... function category_post_shortcode($atts){ extract(shortcode_atts(array( 'title' => '', 'link' => '', 'category' => '', ...
0
votes
1answer
19 views

Rate limiting ajax requests in WordPress

I have using ajax requests in my website to verify data provided by user. Already I'm using wp-nonce with minimized lifetime. But unlimited requested are triggered on that ajax action so help me to ...
0
votes
1answer
21 views

Widgets not showing on custom theme

I'm implementing some widget area inside my custom theme. I've noticed that the added widgets are not display where I want, It will appear a blank area, also if I create a custom sidebar template for ...