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

learn more… | top users | synonyms (2)

18
votes
3answers
8k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
0
votes
1answer
150 views

Baskerville Theme - How to use the masonry grid layout on other pages

I am using the Baskerville theme which looks great but I haven't been able to replicate the Masonry layout on other pages. It works fine on the Home page but there is no template that facilitates this ...
-2
votes
0answers
37 views

Warning require_once [closed]

I was doing the theme change wallpaper, but now can not enter the web site. I get a page all in white with this message: Warning: ...
6
votes
1answer
46 views

Link to specific Customizer section

I've got a site with a few extra Customizer sections. Is there a way to link directly to these so that section open when the page loads? Something like ...
1
vote
0answers
42 views

Include Parent functions.php in Child Theme functions.php

I'm trying to include my parents themes functions.php include into my child theme functions.php. I have a standard setup for a functions.php in my parent. This is what i have in my child themes ...
1
vote
0answers
28 views

WooCommerce : Integrating SMS API not working

I'm trying to integrate sms api with woocommerce to send the automatic order updates to customer's mobile number which they have entered while placing an order. I've written below code in ...
1
vote
2answers
461 views

How can one update a theme on a live site without interruption?

So i have a WordPress-based site with a custom Genesis child theme. Once the site goes live, we are obviously going to need to make changes periodically to the child theme's code — modifying CSS and ...
2
votes
1answer
23 views

Theme Customizer - How to create a sub panel

In Theme Customizer, i'd like to create a sub panel like this one of wordpress: When we add a new item, a new panel which allows us to pick up a item displays on the right, how can i do the same ? ...
5
votes
2answers
2k views

Remove JSON API links in header html

Does anyone know how to remove the WordPress JSON API links in the header tag? <head> ... <link rel='https://api.w.org/' href='http://example.com/wp-json/' /> <link rel="alternate" ...
1
vote
1answer
20 views

Port existing Bootstrap site to WordPress?

I have an existing static site, built on top of Bootstrap, with custom CSS. Now I want to move the site to WordPress (yay). But I want to keep all the styling and layout in WordPress exactly the ...
1
vote
1answer
24 views

Disable Theme API / Front end (for API only environment)

I can't remember in which talk I saw this but there is a codex function to disable the front end altogether. I am not talking about the blank theme as mentioned here: Disable front end to use as CMS ...
1
vote
1answer
59 views

WP can't create new directory

Edit2: I'm renaming the question from "WP didn't add theme automatically" to "WP can't create new directory" because I found out that the problem is a little bit more complex. The same error is going ...
3
votes
1answer
164 views

The the_post_thumbnail without srcset?

The WordPress 4.4 adds multiple image sizes with srcset when using the_post_thumbnail function. Is it possible to get only one image size without srcset ? I understand that it is possible to add a ...
0
votes
1answer
554 views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
1
vote
0answers
18 views

loading blank white screen of slide

Slider loading with white bank screen. It may be problem with active class of the slider but I can find it for fixing. Here is the code --- <section id="main-slider" class="no-margin"> ...
1
vote
0answers
11 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
0answers
17 views

Implementing Owl Carousel in theme

I'm having a real headache trying to implement Owl Carousel in my WP theme. The documentation on OWL not very helpful. I've implemented all scripts and styles in my functions.php, but it is simply not ...
1
vote
2answers
37 views

Delete database tables on theme uninstall?

How can I execute DB queries when theme installs and delete those tables on theme uninstall?
0
votes
1answer
8k views

How to add “Template” option in page attributes panel?

I am new in WordPress. In my theme, I do not have "Template" option in 'Page Attributes panel'. I want to add this option. I tried to solve this problem from the following post. But It did not work ...
1
vote
0answers
16 views

How to create a backend for a custom theme?

Let's assume that there are six different pages in a website. Each page is different & only common part is header & footer. So how will you create back end such that most of the website can be ...
1
vote
0answers
14 views

Customizr Sticky Header Problem

I am working on a Wordpress site, using the theme Customizr, and I am having some problems with the sticky header. When the sticky header option is activated, there is a great blank space between the ...
0
votes
1answer
46 views

How to load jquery ui autocomplete combobox?

I have tried below script to load jQuery UI Autocomplete in theme. But it doesn't load their related scripts. How should I call it to work. wp_enqueue_script('jquery-ui-autocomplete'); I think ...
1
vote
1answer
16 views

How to customize core admin pages within a theme?

Say I'm building a WordPress theme, and when this theme is active I want to display customized versions of some admin pages. Let's suppose I want a custom "Widgets" page: I can find the template for ...
1
vote
0answers
25 views

How would you check if changes were made on a post or page?

I have an post editor and a post viewer (the browser) that are running at the same time. I would like to show changes almost immediately in the browser when the post has been updated on the server ...
1
vote
0answers
15 views

Theme/Plugin installation through url on button click

I have a specific page on my website with several plugins and themes for download. Free plugins and themes. I offer a link to download them but I am trying to give my users this content in a more ...
1
vote
1answer
40 views

Where am I doing wrong in my theme menu?

Every thing works fine out of WordPress but the theme's dropdown menu doesn't work. Here is my functions.php code : register_nav_menus(array( 'primary' => esc_html__('Primary', 'codeha'), ...
1
vote
1answer
24 views

What is the standard featured image size?

Is there a standard featured image size that Wordpress works best with? Or is the featured image sizing based on theme settings or requirements?
1
vote
1answer
39 views

How prevent someone from opening my theme directory

How to prevent users from opening my themes directory or at least preventing wordpress from outputting an error. For example when I open this link in my wordpress blog ...
1
vote
1answer
67 views

Set the transport of the Customizer 'header_image' core setting to 'postMessage'

To activate the Customizer core section Navigation (ID: nav), you need to: add_theme_support( 'custom-header' ); I already tried to make the transport of the Customizer header_image setting ...
1
vote
1answer
37 views

WordPress Permalink 404

I have a problem with Permalink since from version 4.4, from frontend when members try to insert post shows 404 when click submit button, can't insert post only show 404, When i changed to Plain in ...
4
votes
2answers
33 views

How to incorporate admin theme in my back-end-plugin

I'd like to use some colors from the wordpress admin theme to build my back-end plugin's theme, based on Bootstrap-3 & SASS/LESS. I think I saw a few functions to get the colors of the admin ...
5
votes
1answer
2k views

How To Add New Option Types To Option Tree?

I am using option tree in theme mode and child theme mode and I am trying to add new option types. The new option types will be based off of the post-select option type, but will only list posts from ...
1
vote
3answers
19 views

How to add Space between sidebar and footer widget in Wordpress theme

How to add Space between sidebar and footer widget in word press theme.In bottom of our Site, I added footer and how can i increase space between sidebar and footer.Its very close and touching the ...
2
votes
1answer
39 views

Cannot get full thumbnail size using the_post_thumbnail

I cannot get the full (unmodified) image size using the_post_thumbnail( 'full' ); I have also tried: the_post_thumbnail(); It still returns the cropped image. I can see that the unmodified ...
1
vote
1answer
19 views

Broken template went invisible

I made my wordpress run local and copied a new template into the templates folder. After logging in to the backend i got the message that the active theme (the new one) is broken and its reverting to ...
0
votes
1answer
35 views

Is it possible to dynamically show different themes for different users? [duplicate]

I have a website that I need to show slightly different content and color scheme to different groups. Is it possible to show different users a different theme simultaneously? So if I send a link to ...
2
votes
0answers
17 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 ...
2
votes
1answer
14 views

New blog template to display only one category

I understand that I can copy my theme's default blog template and change the code to make it display only posts from one category in the theme's style. I tried tinkering with it, but to no result yet. ...
0
votes
0answers
594 views

Wordpress Site access from other machines on same network

I developed a Wordpress website on my local computer using 'Wamp' server. I'm now trying to put it on a local server at our work so that others can look at it / access it from their work stations. We ...
-2
votes
1answer
27 views

Twenty Fifteen Premium Theme [closed]

I am wondering if GPL License allow us to make premium theme from Twenty Fifteen Wordpress. Can We customize such themes and sell? Please let me know. Thank you!
1
vote
0answers
28 views

Problems after wp 4.4 softaculous installation

I have installed wp 4.4 on my website via softaculous. After the installation I can't open themes or plugins. I just get a message: That page can't be found. It seems like there is something wrong ...
1
vote
0answers
6 views

Navigation label for page in custom theme

In Appearance -> Menus, one can change a page´s navigation label. The label is what shows in the menus. However, i´m using a theme with a custom menu, always showing the full page´s title in the menu. ...
4
votes
5answers
20k views

How to get category and archive title?

When I query the category (category.php), how do I get the title of the current category, ie., the one that is being queried? And how do I get the title for tag and date (be it the day, the month or ...
2
votes
1answer
22 views

Getting Images from theme's directory in pages

Yes, I know that we have get_template_directory_uri(); in referencing to the theme's directory. It's working when I put the following code inside index.php or in header.php: <img src="<?php ...
1
vote
2answers
7k views

How to set thumbnail image for a (child) theme

I've created a basic child image for twentytwelve, and it works as expected. The only issue is that it does not have a thumbnail image in the themes page: How do I set a thumbnail image for my ...
1
vote
1answer
22 views

Adding custom directory and PHP files in wordpress

I'm new to WordPress and I'm using the latest version. I am trying to add this library https://github.com/pinceladasdaweb/tweetlight which is getting the latest tweets from Twitter. Tweets should be ...
0
votes
2answers
96 views

StoreFront Wordpress theme: How can i create a new Home page with Custom design same as template [closed]

I am getting too frustrated while creating new home page using template in Storefront theme. https://wordpress.org/themes/storefront/. With the help of this ...
0
votes
1answer
27 views

Themes not displaying correctly

I recently changed the theme from my website, from one theme to another that I thought looked really good. I thought all of my data would be erased or deleted but instead, it transferred all my data ...
1
vote
2answers
27 views

Private theme update with zip archive without deactivating the theme

I have a private theme and I want to deploy new theme versions of it as smoothly as possible. I've heard about: hosting the theme somewhere like wp-updates.com using plugins to update theme ...
0
votes
0answers
23 views

Broken theme crashed my site, unable to install new theme

The website for my student organization crashed because the theme broke (I think). Now the website displays a blank white screen and I don't know how to fix it. The page information and data is still ...