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

learn more… | top users | synonyms

-1
votes
0answers
14 views

Theme Customizer - Javascript (jQuery) update using `.load('file.php')` - Fatal Error: Call to undefined function

MY SETUP (AND CODE) Wordpress Version 4.4.3 (Latest at time of writing) Installed on a local server using XAMPP I am using the WordPress Theme Customizer, and updating settings via Javascript ...
-1
votes
0answers
7 views

How can I change the front page image dimensions on the Digital Pro theme for the Genesis framework?

I've been trying to restyle the Digital Pro theme on genesis, the issue I'm having is with the inline CSS styles on the front page image widget. It seems like the dimensions are inline styles, how ...
0
votes
0answers
26 views

I'm trying to find a WordPress framework for actual developers [migrated]

I've recently started looking for a theme or framework created for an actual developer. I'm not looking for a theme that has hundreds of options designed for the average joe to get the most out of ...
0
votes
0answers
19 views

Wordpress slider with bootstrap carousel

I have create slider for front-page with bootstrap carousel, for slider content get from featured category, problem is the slider 1st, 2nd, 3rd displayed as list. normally layered with navigation ...
0
votes
2answers
45 views

Checking if there is an Image inserted - if not don't display anything

So within my Customizer I have a section that controls this Slider on the Homepage - the thing the client might not want to use all the Slider Images but all the Sliders still show anyway and the ones ...
-4
votes
0answers
21 views

i have a problem with the responsivity of my site [on hold]

i have a problem with a site i built www.hadran.co.il, the site looks good but in the phone it looks very bad. its go left and many more problem, can anybody can go to the page threw the phone and ...
0
votes
0answers
24 views

wp_nav_array() With A Hamburger Menu

I don't understand how the wp_nav_array works even after reading the codex thoroughly and I'm having issues with adding a menu. My html + css looks like this: <!-- Header --> <header ...
0
votes
0answers
24 views

Warning Error When Visiting My Site

When some people visit my eCommerce site, they get this error: This is what it keeps saying: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_widgets_init' not ...
-1
votes
0answers
29 views

Custom Theme Admin contact-form config page won't display

I'm stuck. I'm trying to add a contact form section in my theme admin. I have added: the functions <?php /* @package volcanotheme ======================== ADMIN PAGE ...
0
votes
1answer
24 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
-1
votes
0answers
20 views

Is there any CLI tool for plugin development? [closed]

I have plans to build tool to speed up WordPress development by creating boilerplate code for plugin/themes. Something like set of Generate commands in Symfony2 Console component. Tool have to ...
1
vote
1answer
46 views

How to get javascript slider to work!

I've only just started to develop my own themes and i'm stuck adding javascript to my slider. I've added the slider into my index.php file as below: <div class="carousel"> <div ...
0
votes
0answers
28 views

How to develop custom URL redirection

I'm writing a custom theme and have a custom post type which represents an external entity (e.g. a website). Hence, I have a field 'external_url' in my post type. Part of the custom post type post's ...
0
votes
1answer
21 views

Integrating Orbit slider into wordpress through custom post type

I am currently working with FoundationPress, It is a great starter theme loaded with cool features. I would like to create a custom post type called "slides" which will be displayed on the homepage ...
0
votes
0answers
25 views

How to hide default sidebar widgets?

I'd like to hide/not display all default widgets(Search, Recent Posts, Recent Comments, Archive, Categories and Meta) which are inserted into custom sidebar when the theme is installed. (Removing them ...
0
votes
2answers
24 views

Display custom post using ID

In my theme, I have a custom post type called sliders. Here the user is allowed to upload images in a meta-box. So, the images are saved as meta data in wp_post_meta table. Now what I want to do is, ...
0
votes
0answers
15 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
24 views

Help with folder structure for MVC plugin / theme

I know similar questions have been asked many times, but I couldn't find an answer that would help me progress with my project... Here's my situation: Large part of my project is for logged users ...
0
votes
0answers
22 views

Creating a WordPress website using WP-CLI

I really struggling to work this one out, its about WordPress / WP-CLI & BASH. Heres my script: if [ ! -f ".env" ]; then touch .env echo -n "Enter the DBNAME and press [ENTER]: " read ...
0
votes
1answer
13 views

get_posts is duplicating

I have the following code where I want to show one query with the last "post type" post and one query where I want to show the rest. Problem is that the last query is duplicating the first one. How ...
0
votes
0answers
19 views

Wordpress Theme & BWS Portfolio Plugin Style Messed Up

I am very new to WordPress. I made my own theme using Twitter Bootstrap. Everything works fine when it comes to posts and pages. Now I installed the BWS Portfolio plugin and when I try to go to the ...
0
votes
1answer
15 views

Query wp_postmeta into an array based on post_id

I know this might be a simple question but can someone explain to me how to query the WP database and pull in all the "meta_key" and "meta_value" from "post_id" into an array? I have looked at code ...
1
vote
0answers
24 views

Array Chunks and Inserting Varying HTML in WP_Query

I am trying to output the latest 5 posts from my blog. I would like each post thumbnail to populate divs in the following format. <div class="row full"> <div class="large-6 medium-6 ...
0
votes
1answer
30 views

What is the best way to organize template parts?

I am trying to bring some order in to theme files and would like to separate templates parts. I see that underscore ( _s ) has done something similar but they moved only content templates inside , ...
-1
votes
1answer
21 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
0answers
14 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
36 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 ...
1
vote
0answers
40 views

Customizer Active Callback not working

From some reason my active_callback => 'is_front_page' is not registering 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
14 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
0answers
11 views

Submenu not working with iOS

Submenu is not working with iOS. Can not solve the problem.. Can you help me? http://silviabrosig.com/ -> Menu "WORKS" Tx.
0
votes
1answer
33 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 ...
2
votes
0answers
28 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
45 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
21 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() { ...
-1
votes
0answers
21 views

Use Yoast SEO Title for Recent Posts on X Theme

I know this is super specific but hear me out. On my site I use the X Theme (linked so you can see what I'm referring to). "Recent Posts" is a module of the X Theme which I have setup to show the ...
3
votes
2answers
41 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
10 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 ...
0
votes
0answers
9 views

How can I create scrollable columns? [migrated]

I created a new template file template-home2.php in there I have a row with 3 columns, I would like to make each of these columns scrollable instead of the entire page. How can I achieve that? I have ...
1
vote
1answer
15 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
24 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
32 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( ...
3
votes
1answer
39 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
16 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
26 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
16 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
0answers
10 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
33 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
59 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
9 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
53 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 ...