Questions tagged [themes]

A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

728 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
183 views

Hook in wp.media to add a new tab

This is an issue coming up while creating a plugin. I want to add a tab to the wp.media.view.MediaFrame.Select modal or if a general approach helps: In the customizer I want to hook in any modal ...
5
votes
1answer
140 views

Disable plugins on cron and ajax page

I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
4
votes
0answers
33 views

Using Primary Color in Plugin Block

I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
1answer
610 views

Looking for a way to load a function after customizer preview refresh complete

I need to load a callback function after a wp.customize.previewer.refresh(). I need this because I want to update a template position which is displayed with a custom hook in my theme and scroll the ...
3
votes
2answers
4k views

why is translation not working on theme?

Background I am using the theme Rookie from Sportpress. I created a child theme. Translation files are existing, especially german in my case. Wordpress is set to german language. The Problem ...
3
votes
1answer
2k views

How to enable edit button in the theme's customize UI?

I saw on WordPress.com's theme customizer has this little blue (with a pencil icon in it) edit icon, they are SUPER user friendly! But seems default wordpress.org installation does not have it! Is ...
3
votes
0answers
178 views

Change Theme from Plugin based on query_vars

I'm working from about 4 months on developing a Plugin. This plugin make in a page an entire app, using the powerful of Wordpress. So, I've decided to create a serires of rewrite rules using command ...
3
votes
3answers
39k views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as style....
3
votes
1answer
3k views

“Cheatin’ uh?” error message on multple theme directories

In my wp-config.php I've added another theme directory; register_theme_directory( dirname( __FILE__ ) . '\..\themes' );. I'm not sure if this is the correct place to add it. When I then try to ...
2
votes
1answer
29 views

How can I list only sites that use a particular theme or plugin?

I need to search through dozens of WordPress multisite (network enabled) installs for sites that use a particular plugin. How can I list only sites that use a particular theme or plugin, preferably ...
2
votes
0answers
20 views

Migrating October CMS to Wordpress

I've done a lot of research on this and cant figure out what option is the best and quickest to take. We currently have our website on October CMS and are looking to move it over to Wordpress. Has ...
2
votes
1answer
88 views

Hook into theme-switching later than `setup_theme`

I need to add a theme-switching logic to a site. Unfortunately, what I've tried already doesn't seem to work as required. The themes needs to switch based on whether the user is on the blog part of ...
2
votes
0answers
31 views

Is there a reliable way to keep track of how long a WordPress theme has been active?

I want to keep track of how long a specific WordPress theme has been active, not just installed. The end goal being I want to display a notice after a user has created x number of posts and the theme ...
2
votes
1answer
449 views

Adding code to child theme functions.php to override parent theme behaviour doesn't work

I am trying to override some behaviour in a parent theme (Blackoot Lite) and used this StackOverflow question as a guide. My goals are twofold—I want to unregister a default sidebar in the ...
2
votes
1answer
20 views

I am trying to output portfolio items with a picture. This code doesn't seem to be working. What am I doing wrong?

<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=21&post_type=portfolio'.'&paged='.$paged); $count = 0; while ($wp_query-&...
2
votes
1answer
114 views

How do you manage your theme versions when privately distributing?

I'm working on a theme that I don't want to be public or available via the default WordPress directory, as it's going to be a framework that we use to develop a variety of websites we host. Now, I ...
2
votes
1answer
119 views

Problem in theme installing?

I am trying to install a downloaded theme in .zip format, on my Ubuntu OS when i click on upload & try to install it, it shows the error: Are you sure you want to do this? Please try again. ...
2
votes
2answers
774 views

Wordpress generating 404 on .mp4 file in theme folder

I am trying to load a full width video on my homepage. My situation is almost exactly like: Video Background - (php & css) - generating 404 error on page load - Wordpress Theme File Structure ...
2
votes
0answers
302 views

How can I measure the performance of any WordPress Plugin or Theme?

There are many WordPress plugin or themes with nearly same functionality and features but, how can I measure the performance of any plugin or WordPress theme other than using P3 profiler plugin? I ...
2
votes
1answer
2k views

single.php change into a modal popup bootstrap wordpress

I want to change the modal popup single.php be bootstrapping , so when clicked readmore on post , just turn up the single post with the display popup instead to a new page and there are display how ...
2
votes
1answer
26 views

How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?

I currently have a theme with OptionTree installed. It is used to create a list of locations which are then visible in a dropdown in the header of the page. The display code with OptionTree looks like ...
2
votes
1answer
95 views

get_template_directory has an odd functionality

I have Wordpress 4.4 installed localy on wamp server 2.5 x64 on Windows 10 and noticed that: get_template_directory(); returns this: 'C:\wamp\www\my-site//content/themes/my-theme' Questions What'...
2
votes
0answers
48 views

How do I copy all “extra” data (menus, widgets, etc) from one theme to another?

I have two copies of a theme I'm developing up on my site (one was the existing file structure when I got started; the other is now set up to update automatically via git for a more sane development ...
2
votes
0answers
4k views

Theme Editor Not Showing

I made a custom WordPress theme from scratch for a client, then zipped it up and sent it to them. They installed the theme fine, but for some reason the theme editor does not display. What I mean is ...
2
votes
0answers
267 views

Theme editor not showing correct index.php

I've run into a weird issue. Not a big deal, but I'm curious about the cause. I was making a small edit to a site built by someone else; it was also temporary, so I was just using the built-in theme ...
2
votes
1answer
408 views

Two Navigation Menus - secondary nav is including main nav

Two Navigation Menus in Themes Produce the same menus? reference the subject on page link above. i created two navs, yet the secondary nav includes all pages. the main nav is fine, but the secondary ...
1
vote
0answers
22 views

Being asked to update a theme that I don't have

In the Updates page I can see kava You have version installed. Update to 2.1.0. Thing is, I don't have such theme... In the Themes page and in the themes folder of this WordPress installation I ...
1
vote
1answer
11 views

Apache errors when retrieving taxonomies

I'm regularly seeing Apache errors when my category-single-page.php is pulling in the categories related to a post: PHP Warning: array_values() expects parameter 1 to be array, bool given in /wp-...
1
vote
1answer
42 views

How do you approach block structured content?

I'm currently trying to learn how to create a custom wordpress themes and while the documentation is pretty great there seems to be a lot ways to implement things on your website. What I'm struggling ...
1
vote
1answer
833 views

The style.css stylesheet doesn’t contain a valid theme header

when I try to upload a theme I have uploaded on a free host and it is the first time I upload a theme on a host, I got this error failed because The style.css stylesheet doesn’t contain a valid theme ...
1
vote
0answers
17 views

How to change only one javascript function in wordpress child theme?

I would like to change just one JavaScript function in the child theme but without having to insert all the JavaScript code of the parent theme. How do I change only this function (I need change only ...
1
vote
0answers
24 views

How to remove style attribute in WordPress RSS output?

I have tested my RSS using the W3C Feed Validator but it is outputting an error to fix: style attribute contains potentially dangerous content: max-width How can I fix this error and remove style ...
1
vote
0answers
202 views

How to reverse the pagination numbers of an archive?

I have archive pages that each contain titles and excerpts from 10 blog entries. Both entries and archive pages are in reverse chronological order: when a new blog entry is written its title and ...
1
vote
0answers
12 views

custom theme ,add media not showing images in media library

i am beginner with theme development, created a theme following an online tutorial. when i try to add images in a post using the add media button , it opens but shows no images , the loader just keeps ...
1
vote
1answer
39 views

Move category description below post list in blog

i am good looking for a way to move - in blog page - the category description under the post list instead of above by default. Can i do that with a php function without changing the theme files ? ...
1
vote
0answers
20 views

(FES EDD) New vendor submission page is blank

When someone signups as a vendor and tries to post a new submission(service), when its posted the page is blank: https://markety.gg/downloads/demo-from-dilip In the backend, the submission is ...
1
vote
0answers
24 views

How can I add class to every quote element?

How can I edit defualt class of quote element? Can I use some kind of hook in the_content to add class to any other element??
1
vote
0answers
25 views

Edit footer via customizer

I am creating my own theme. I would like to edit the footer in the customizer. I was able to enable the custom logo etc. but I can't find a solution how to enable the footer button in the customizer. ...
1
vote
0answers
24 views

Plugin-generated pages use Not Found or Pages Archive templates?

A WP Plugin we developed dynamically generates storefront pages at a subdirectory of the merchant's site, populated with product data the plugin syncs from our own servers--e.g., the storefront may be ...
1
vote
0answers
36 views

Is there any kind of theme on WordPress to sell my own movies?

Hope you all are doing well. Sorry if it is non-related topic in this website, but I was struggling to find an answer for my question. I would like to create a website on WordPress where I could put ...
1
vote
0answers
168 views

Create custom registration form for Wordpress Multisite

I have Multisite Wordpress website and i've seen the default the registration from but it did not meet all my requirements because i want to add more additional fields like Password field.
1
vote
0answers
33 views

Child Pages Short Code plug-in and hover capabilities?

Recently was trying to work on Wordpress site that was passed on to me, and it has a page that uses this plug-in and this one. The former provides an excerpt of the child-page for viewing purposes on ...
1
vote
0answers
56 views

Wordpress Shortcodes.. printf is outputting a random number… Can't figure out WHY?

As the subject states... why is this happening? I have the following shortcodes registered so that the user can easily create a slideshow within their content and widgets. functions.php function ...
1
vote
0answers
19 views

Page dissapears when i click save

So when i click save in a WP page the page content disappear. While it is still in Draft mode i can preview the content ok, thus it disappears when i click the Publish button. I have discovered that ...
1
vote
0answers
42 views

Angular integration with homepage

I have a requirement from client that they want to serve wordpress' front page as home page to angular project. It means if user clicks any link on WP's home page, then it will redirect to angular ...
1
vote
1answer
45 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-...
1
vote
1answer
740 views

Custom Theme, Custom shortcode not working

ENV: WordPress version 5.1 / MAMP Pro php v. 7.2.14 I'm building a new, custom theme for a site that has an old, custom theme. The new site is just a single theme, while the old site has a parent ...
1
vote
1answer
124 views

Edited Child Theme's “header.php” but it doesn't appear to change the file

So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/ and edited the header.php file. I saved the file and uploaded it and I can confirm the file has changed because if I check via ...
1
vote
1answer
461 views

Child theme not working after Parent Theme Update

I am new web development and probably missing something basic. The site uses the OceanWP theme as the parent theme with customizations inside of a child theme. When I update the OceanWP theme and ...
1
vote
0answers
18 views

Wordpress website Rs changed to currency symbol

I have a wordpress blog website and all of a sudden in all of our blogs Rs has been replaced with a hindi currency symbol. I have tried checking out theme settings or any update in code which ...

1
2 3 4 5
15