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

learn more… | top users | synonyms

-1
votes
2answers
44 views

What to do when child theme is out of date with parent theme

I inherited a site with Genesis as the parent theme and a Genesis child theme. The parent theme has smoothly been upgraded over the years. The child theme, however, was based on an older version of ...
0
votes
1answer
21 views

Malformed RSS feed

I am trying to connect my site's RSS feed to Mailchimp, but my feed doesn't pass basic RSS validation (http://testrtc.com/feed). The reason for that is 3 empty lines at the beginning of the feed, ...
1
vote
0answers
101 views

Displaying recent posts on static page with template-part via shortcode

So, I'm taking my first shot at creating my own custom Wordpress theme with Underscores. I have everything straightened out, with the exception of one last thing I want to add. I would like to add a ...
5
votes
1answer
97 views

Customizer Active Callback not working

From some reason my active_callback => 'is_front_page' is not working and therefore not showing up inside the customizer on the front-page. I have definitely set my front page to static and ...
0
votes
1answer
15 views

Need help with adding custom menu content

I'm trying to install a Google AdWords snippet on a client website. It calls for replacing the business phonenumber on the page with something like <span class="number">content</span> ...
0
votes
2answers
54 views

Website pagespeed problem

I have a WordPress website. I've tested it for speed test with google tools, but I see some of errors like this: Leverage browser caching Setting an expiry date or a maximum age in the HTTP ...
5
votes
0answers
52 views

Can I create customizer setting that can handle plugin shortcode?

Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it's possible what is the best way to sanitize ...
1
vote
1answer
74 views

wp_enqueue_scripts not working in custom theme

This one may have been answered before but I could not find it anywhere. I have created a custom theme and a plugin for my site. My theme's functions.php file only contain a wp_nav_menu() function ...
1
vote
1answer
47 views

Finding the URL to be used to check if plugin is installed with a theme

I understand the following code checks if a plugin is installed and if not it puts an error in the backend of WP: add_action('admin_notices', 'showAdminMessages'); function showAdminMessages() { ...
4
votes
2answers
69 views

Escaping built-in WP function return strings

Should one filter the output of builtin WP functions such as get_permalink() and well-known WP plugins such as ACF (Advanced Custom Fields) such as get_field()? For instance get_permalink() calls ...
1
vote
0answers
12 views

Changing a slider to a grid [closed]

I got sucked into helping a friend with her blog and got a bit over my head. I need to change the slider on the homepage of this site to be a grid like this site. What would the easiest way to do this ...
1
vote
1answer
21 views

How to control on which pages the Aldehyde theme's main slider is shown?

The Aldehyde theme is a nice open source theme that comes with a main slider that can be configured in the template's settings. By default, it is shown on the blog page, whether that is the homepage ...
1
vote
2answers
34 views

Custom theme: Alternatives to long list of 'include' in functions.php

I'm building a custom theme for in-house use only. I started by putting a lot of the core functions in plugins, but then that seemed silly since they don't require any user interaction. Next, I put ...
1
vote
1answer
38 views

Static page does not show my posts

I have a home.php and an index.php. Wanting my home.php (set as static) to display 3 grid style showing 3 posts. This is my current code. <?php // The Query $the_query = new WP_Query( 'cat=4');...
5
votes
1answer
99 views

Custom Image section in Customizer

So I have this Custom Section in the Customizer that controls the Feature Products on the Home Page. There all registered and so on but the problem I'm stuck on is when the client uploads one of the ...
1
vote
1answer
28 views

Custom Widget options in theme

I want to reprogram my first sketch of our theatre club page in wordpress but until now I only have basic knowledge of creating wp pages. As I want the theme to be as customizable as possible I want ...
1
vote
0answers
35 views

Dynamically change feature image in customiser

For this client's Website I am making on their homepage there is a section called featured products with images showing off the product. Currently I have to update these images manually through my ...
1
vote
1answer
46 views

How to use copy() function and paste file in /wp-content/themes directory

copy("http://localhost/medium/theme.zip","themenew.zip"); currently it is pasting file in wp-admin folder, Is there any way I can copy .zip file to /wp-content/themes directory. Thank You :)
1
vote
1answer
17 views

Does WordPress theme customisation API support section hierarchy?

how to create theme customisation section hierarchy illustrated below ? main section   subsection 1     subsection 1.1     subsection 1.2   subsection 2     ...
1
vote
1answer
40 views

What do with the index.php … [duplicate]

Sorry for my simple question, but I don't know how to explain it right so google won't help me. Therefore I try here to get a answer. So.. i use the front-page.php in my theme as startpage. I know ...
2
votes
2answers
121 views

How to set a custom post type post as static front page?

I am writing my custom theme from scratch and I have a custom post type 'my_frontpage' and want to declare one of it's posts as front-page. I want to do this via admin, hence simply add my cpt to the ...
0
votes
0answers
12 views

Wordpress customizer preview not updating certain settings

So I'm trying to add an option so that the nav menu align's to the left, I do this by adding a. echo ' .item{float: left;}'; to the wp_head, but it only updates the live preview when I save and ...
1
vote
1answer
58 views

How to add theme support?

I figured this would have been a question already, but I haven't come across it. I'm wondering what the correct hook for checking theme support is in a theme and also a plugin. function ...
1
vote
1answer
78 views

Displaying recent post excerpts on static front page

I'm trying to display a static front page with recent posts at the bottom. Specifically, I want to display just an excerpt from the recent posts, as would be returned by the_content() if I had a ...
1
vote
1answer
39 views

Using esc_url with a hard coded url

I've added following URL in my theme, but I have been informed that I must use esc_url(). I could not figure out, how can I use that function with following code? <a href="http://pinterest.com/pin/...
-2
votes
1answer
27 views

Can anyone tell some online tuts for plugin development for beginner? [closed]

I am new to WordPress Theme development. I want to learn plugin development.
1
vote
1answer
38 views

How to edit widget code to add unique class name to each div?

Code from existing widget: $get_featured_pages = new WP_Query( array( 'posts_per_page' => -1, 'post_type' => array( 'page' ), 'post__in' ...
0
votes
1answer
84 views

WordPress Google Maps in Custom Theme

So I'm building a custom theme and implemented the Google Map API so I can give it a cleaner feel and so on then the normal Google Map. I've run into a problem when implementing my Marker as I ...
0
votes
0answers
28 views

How to print from this Wordpress object?

I'm just trying to get the number of posts from a custom post type but I think a more pressing issue, for me, is that I'm not sure how to retrieve specific information from returned Wordpress objects ...
7
votes
3answers
158 views

What difference does it make if I use index.php as HTML wireframe versus writing each main template file as a full HTML document?

Assuming a website where page header and footer elements remain constant in every view: Due to WP's template hierarchy system, I could hard-code the general website layout in index.php. Then, I could ...
0
votes
1answer
88 views

Changing next and previous post link text

So I've been staring at the CodeX for about 10 minutes and can still not figure how to do this next and previous on a the post page. So I've added <?php next_post_link(); ?> and <?php ...
1
vote
1answer
23 views

Unique sequential reservation code

I have a situation where I'm re building a tour transfer reservation site, I've created the reservations cpt's and each time a user place a reservations this automatically post as a new reservation. ...
0
votes
1answer
56 views

Remove div element generated automatically from theme [closed]

I have a theme and I want to remove from it the following html content which is generated automatically: <div style='position:fixed;left:0;right:0;bottom:0;background:#f00;text-align:center'>...
1
vote
1answer
116 views

WP_Query arguments to fetch custom post type posts which are in certain category?

I've played around for hours but still can't wrap my head around the right arguments for a secondary WP_Query which shall fetch all posts of my_custom_post_type that are in the queried category. ...
0
votes
0answers
88 views

How to output wp_enqueue_style() in HTML head instead of footer

I added some actions to wp_enqueue_scripts to load my custom css and js files in the header section by using wp_head(); right before the closing </head> tag. function mytheme_scripts(){ // ...
0
votes
3answers
148 views

How to control initial wp_head() output?

I followed the common advise to use wp_head() in header.php and wp_enqueue_scripts() instead of hard linking css and js files in header.php. However, I realized that wp_head() outputs lots of stuff I'...
1
vote
0answers
69 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 ...
0
votes
0answers
25 views

Theme customizer live preview not updating correctily

So I'm trying to add an option so that the nav menu align's to the left, I do this by adding a. echo ' .item{float: left;}'; to the wp_head, but it only updates the live preview when I save and ...
0
votes
2answers
164 views

Template tags to display custom post type posts in category template?

I am developing a custom theme with custom post types involved. Custom post types have been defined via plugin 'Pods' (http://pods.io). When writing a category.php, I realized, that the standard loop ...
0
votes
1answer
32 views

How to seperate static phrases from template files in custom theme?

I am looking for best practise patterns how to separate static phrases (e.g. button labels, status messages) from the actual template files when developing a custom theme? It is not necessary to make ...
5
votes
2answers
175 views

Allow Shortcode in Theme Customizer

All theme dev who follows the wp guidelines properly, now uses ability of default wp customizer to customize their themes, instead of making a different theme option section the admin panel. But what ...
0
votes
2answers
20 views

Theme not uploading showing maximum upload size on live site

I have developed on theme which have integrated framework for theme options, visual composer and slider, it make the theme size nearly 11mb after compressed(zip) but while i want to upload the theme ...
0
votes
1answer
47 views

How can I include the js and css file of my custom theme dynamically in header.php

I am creating a simple theme in wordpress.The problem is that number of assets that are present in js and css folder are not same in every case i.e. the number of .css files in css folders may change ...
2
votes
1answer
65 views

How to override functions.php in child theme?

I have a theme and I need to override some specific parts|behavior of it specifically on the functions.php file. I know the best practice here is doing this at child theme by placing a custom ...
4
votes
1answer
1k 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 ...
1
vote
0answers
28 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
1answer
36 views

Does a premium / for sale theme need to go through the Wordpress approval process?

I am about to finish 2 themes for sale. Do I need to put these through the Wordpress.org approval process?
2
votes
0answers
13 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 ...
0
votes
1answer
46 views

Javascipt issue on custom theme

First off I always seem to have trouble getting my JS to work with WP. Currently I need some help figuring out what is going wrong with my javascript and ultimately what I am doing wrong. I have this ...
1
vote
1answer
109 views

Redux Framework has an embedded demo. Click here to activate the sample config file

I developed the theme. Redux Framework configuration file located in the theme directory. Himself ReduX Framework I installed from the repository Wordpress using the TGM. But when I install a theme, ...