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.

601 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
139 views

Hook in wp.media to add a new tab

Salut! 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 ...
4
votes
1answer
444 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
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
150 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
0answers
110 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 ...
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
201 views

Wordpress 5 / Gutenberg - theme doesn't have featured image option showing up

I have a custom theme. I've deactivated every plugin. I can't get the Featured Image block on the right sidebar of editing a post to show up so that the user can set the featured image. I have this ...
2
votes
1answer
28 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
30 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
349 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
55 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
99 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
520 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
288 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
84 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
45 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
2answers
34k 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....
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
239 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
388 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 ...
2
votes
2answers
1k 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 ...
1
vote
0answers
18 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
28 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
30 views

How to prevent users to download videos from lms website?

I want to develop a wordpress lms website that support woocommerce payment gateways. I've found some themes and plugins like: learnpress, wplms and much more Some of them doesn't support uploading ...
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-...
1
vote
1answer
58 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
51 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
118 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
vote
0answers
105 views

Woocommerce StoreFront Showing Incorrect Subtotal in Customer Total

I am using StoreFront with Woocommerce, very basic as I only have one product with variations. The product is 'CESAA Membership' and I have 6 variations...the issue I am facing can be explained with ...
1
vote
0answers
18 views

WP_Comment_Query - Get comments and answers separately

I was developing a theme and this time I chose to use the bootstrap4, I found some difficulties in the way but I managed to solve them and the result was satisfactory, however creating my comments.php ...
1
vote
0answers
22 views

Linux Permissions and Ownership for WordPress

I installed WordPress via ftp upload to our server using my ftp user account. This account is different than the user that runs http/Apache. I am now trying to install themes and plugins and I am ...
1
vote
0answers
87 views

posts comments goes to trash

My website was working fine until today, I just discovered that all comments made goes straight to trash. I did not install new plugins, I don't have akismet. It just started. I have deactivated all ...
1
vote
0answers
21 views

Wordpress site periodically goes down

my site https://mediatrends.me/ periodically goes down. It works fine and then all of a sudden any page becomes unreachable in every web browser. "site can't be reached", etc. After a few minutes it ...
1
vote
0answers
152 views

Customizer: active_callback and sanitize_callback incompatibility?

Below are a few Customizer controls I have for my site logo - Display Logo, Logo File and Logo Size. As you can see, I'm using an active_callback so that when the display_logo checkbox is unchecked, ...
1
vote
0answers
188 views

excerpt() shows different result between remote and localhost(development environment)

Something strange when I am developing my own theme. Not sure what have I changed recently, but the the_excerpt() or get_the_excerpt() started to show full text on my localhost dev environment, while ...
1
vote
1answer
266 views

Change locale by detecting viewer's browser language setting and let them choose prefered language after

I am coming from a multi-linguo country, and viewers may speak different language. I am writing a theme and I noticed that the language of my theme only changed based on the setting of my admin panel,...
1
vote
0answers
76 views

Masonry images not working

Until yesterday, all 10 tiles were showing on the main page on this website. After updating 3-4 pages and adding a "blog" function to them (separated by category), only 3-6 tiles will show at any ...
1
vote
2answers
40 views

Why is it needed to enqueue parent stylesheet in child theme?

WordPress documentation says to enqueue parent stylesheet in child theme: add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = '...
1
vote
0answers
20 views

Own Theme Customizer displays error message when saving, saving still works

Im currently working on my Customizer, and i just started off, when i reallised that there is a problem. I added a new section, control and setting to change the color of h1, and everything works in ...
1
vote
0answers
1k views

Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()

I am using a modified version of the Social Activity theme from CMS Masters, and was trying to change the hardcoded versioning of the stylesheet in the header in order to reflect CSS changes I made. ...
1
vote
2answers
41 views

Folder name for a pro version of a WordPress.org theme?

I am developing a free theme and users can download it from WordPress.org. I am working on pro version of the same theme. What should be the name of the pro version's folder? My theme's name is ...
1
vote
0answers
34 views

My page.php shows the index.php

Sorry for this simple question, I am very new to Wordpress. I have a simple index.php that show a view of posts, just the images. When I click on any post, it should send me to the full view of ...
1
vote
1answer
123 views

What is the best practice for displaying my plugin content in themes?

When developing a plugin that contains a custom post type, for example, what's the best practice for making sure the content will display properly within any theme? Let's say I want to display my ...
1
vote
1answer
381 views

Twenty fifteen theme - change responsive menu condition

So I want to move sidebar to the top of the page and hide it behind hamburger menu. Just to make it exactly like when the screen is smaller (tablet, smartphone), despite resolution. So I thought ...
1
vote
2answers
353 views

WP didn't redirect to canonical category URL

I have a problem with canonical redirect. mydomain.com/mycat is the correct category URL but the following URL works too: - mydomain.com/asdfa/mycat - mydomain.com/1234/mycat - mydomain.com/...
1
vote
2answers
152 views

Is there an alternative to get_template_directory_uri()?

I need to know the templates directory uri at a point at which the function get_template_directory_uri() is not yet available. The function where I need the uri is triggered by the action ...