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

learn more… | top users | synonyms

1
vote
0answers
43 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
20 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
29 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
26 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
56 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
18 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
40 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
0answers
48 views

TypeError: $ is not a function for any/all js library [duplicate]

TypeError: $ is not a function for any/all js library I tried to fix this below issue by multiple js conflict variable of different methods. this is one link i referred during the effort to fix. There ...
2
votes
1answer
34 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 ...
3
votes
1answer
168 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
19 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
33 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?
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 ...
0
votes
1answer
35 views

WordPress Custom Contact Form

So for my Custom Theme I've created a Custom Contact form and I have error messages but the thing is the error messages are showing even though it's the person first time on the page. Basically I only ...
0
votes
1answer
28 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
31 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, ...
1
vote
1answer
36 views

When is the proper time to minify css and js with git workflow?

New to web development, and have been utilizing a git repository for my wordpress website. I maybe over thinking this but here goes... Currently, my workflow is as follows: Make changes locally and ...
0
votes
1answer
55 views

Custom Theme Bootstrap

So I've made my Custom Theme using bootstrap and everything is working all good and well expect from when I put it onto a tablet device. The Problem I'm having is the Navbar doesn't collapse when the ...
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
votes
1answer
28 views

How to change order of elements using a child theme

I am creating a child-theme to storefront, and for my specific purpose I want the meta information (tag, category, etc) to be available at the bottom of the page, and not right after the 'Add to cart' ...
1
vote
0answers
27 views

Programmatically set parent page for given pages/templates [closed]

I have a WooCommerce theme that I'm working on, and I'm trying to deal with submenus now. I'd like any product page (archive/single product/etc) to have the parent page 'Shop'. That way I can get the ...
0
votes
2answers
34 views

Change frontpage content via Wordpress

I just started to work with Wordpress (Theme Development) and due to awesome functions like bloginfo('description') and others my static homepage looks a lot like a regular site, but editable with the ...
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'), ...
0
votes
0answers
53 views

Custom Post Type Custom Taxonomy Term Template

I've a problem custom post type custom taxonomy term template. Wordpress: 4.4 Custom Post Type: theme First Custom Taxonomy: cms Second Custom Taxonomy: themes First Custom Taxonomy Terms: ...
1
vote
2answers
119 views

How to determine if the current file is loaded in a plugin or in a theme?

How to determine if the current file is loaded in a plugin or in a theme? A boolean PHP function.
1
vote
0answers
16 views

Change setting name in Customizer and keep the data

I created a theme while back when I was new to Customizer API and for some weird reasons I named theme settings as: $wp_customize->add_setting('thefunk_theme_options[header_color] Instead of just ...
0
votes
0answers
56 views

Extending Nav walker with Yamm menu

Here is my navigation code where only service tab should have col wise layout of menu. I am using bootstrap nav walker menu which is working fine for other nav except services menu which should have ...
0
votes
1answer
20 views

Place title (in correct place) above image with opaque background [closed]

I would like to display the title with opaque background above the images on a frontpage.php. I am able to display the title on top with margin:-#, and can add a transparent background with z-index ...
0
votes
1answer
20 views

How to Manually Code Shortcode?

I'm looking to insert a function which is otherwise denoted as a WP shortcode. The page is failing to display entirely when this code is inserted. Here is the full code which comprises the shortcode: ...
1
vote
3answers
78 views

How to add background image control to page admin controls?

I understand that each page is assigned its own class such as .page-id-22 & I can use that to assign a background image to it using the stylesheet but I've seen a theme that adds a control to the ...
1
vote
2answers
22 views

Implement content-nosidebar.php / content-leftsidebar.php

I've been trying to create Page Layout's so that the person using the theme to position the sidebar either on the left, right or have the page as a full width one. I've looked at another theme and ...
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
40 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
0answers
20 views

Return a css class in functions.php snippet (WP Job Manager)

How can I trigger a CSS login lightbox when clicking on the "sign in" button on the following page (Wordpress Demo)?: http://workscout.in/post-a-job/ This is the CSS class that I found: <a ...
1
vote
1answer
33 views

Strange Situation When Try To Retrieve Github Gist Using wp_remote_get

I have fall in a strange situation. Take a look at below code: <?php $args = array( 'headers' => array( 'Accept' => 'application/vnd.github.v3+json', 'Authorization' ...
1
vote
1answer
19 views

Redirect to specified page when insufficient permissions?

I am using a plugin to allow users access to specific posts, but for restricted users, it shows: You do not have sufficient permissions to access this page How can I redirect restricted users to ...
0
votes
0answers
19 views

Displaying Widget between body

This is my code <?php get_header(); wp_reset_query(); $width =1100; $height = 556; $image_url =''; if (post_password_required()) { echo '<div ...
2
votes
2answers
116 views

Widgets panel not displaying in the Theme Customizer

I am using the Theme Customizer to let users customize how their website looks. I noticed on the Twenty Fifteen theme there is a panel for Widgets. I have seen this on quite a few other themes too, ...
0
votes
0answers
21 views

Using base.php to keep the code DRY

Predefined anatomy of a theme according to Wordpress documentation is like this: index.php header.php footer.php single.php page.php Normally you get partial files everytime in index.php, ...
0
votes
0answers
14 views

How to add a page/post to the 'primary' nav menu? [duplicate]

In the wordpress, how can i add a page/post in the 'primary' nav menu ? By code ? All i know from admin you can add it via appearance > menu.
-1
votes
1answer
49 views

on click load images on the same page [closed]

This is my website. On the left there is a list. I want to do is that whenever I click on Amazon 1 then page should display that specific images. When I click on amazon 2 it should display data for ...
1
vote
1answer
30 views

Calculate data and passing to Theme

i try to develope a Theme for displaying the Data of my own Plugin. Now I have the following scenario: I'm getting the PostId over get_the_ID(); (e.g. PostType = 'Product') then I'm getting Data ...
0
votes
1answer
21 views

footer menu changes primary menu

I am getting a strange error on my wordpress My primary menu is changing along with footer menu. so if I remove pages from footer they get remove from Primary menu is aswell here is how I ...
1
vote
0answers
56 views

Custom Navigation build using wp_nav_menu and walker

What I have Right now I have an old template in plain HTML. In there I use a custom Navigation menu built like this: <div class="collapse navbar-collapse main-menu main-menu-1" id="main-menu"> ...
0
votes
1answer
16 views

Include css file to theme

How can I include a css file into your theme that is included in the same folder of the index.php file? I've try to use the html link-tag but WordPress can't find it. Here is my code in header.php: ...
0
votes
0answers
21 views

Permalink Setting Changes From Post Name to Default After Changing The Page Name

I had to change a page name through theme folder like /currentTheme/ page-eyeglasses.php to ---> page-eyeglasses-1.php to make the page not temporarily not accessible. But after returning the ...
1
vote
0answers
49 views

Theme Customizer - Choose where widget area appears, to let users organise widgets

I am creating a Theme, and I have a problem with Widgets and Widget Areas. I am using the Theme Customizer to let the user edit the content, colors, etc. I know how to create a widget area. I need to ...
0
votes
1answer
26 views

How to Have a Pure HTML Sub Directory In WP Site

I have a website powered by WordPress which is working perfectly. Now I need to have a Custom Directory called app and a very simple HTML markup called app.php or app.html inside there nevertheless ...
0
votes
1answer
38 views

Passing variable in hooks and filter

I was trying to pass variables in filtes. This works perfectly for me. class my_class { function my_class() { add_filter('wp_list_categories', array(&$this,'cat_count_span')); } function ...