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

learn more… | top users | synonyms

0
votes
1answer
14 views

Customizer_register theme options not saving

I'm trying to add a phone field to a theme's customizer, so far, I was able to add the field in the customize page, but for some reasons, it won't save, whenever I save and went back to check it, the ...
1
vote
1answer
61 views

Cannot update WordPress General Settings Site Title and Tagline

I have a WordPress 4.4.2 installation with no SEO plugins at all. The plugins that I do have activated are WooCommerce, WooCommerce Multilingual, and WPML. I am unable to update the Site Title and ...
0
votes
1answer
23 views

Correct (and secure) way to escape url when using href attribute

maybe it's not such a big deal as I think it is, but I want to escape href attribute with some text. Which one of these examples is the "correct" one - and does it actually matter? <?php printf( ...
-2
votes
1answer
45 views

Admin bar is showing up to non logged in users

Even after logout from wordpress admin, Admin bar is still showing up on front-end. Attaching screenshot here, When I change theme, Admin bar doesn't showing up. It looks like there is issue only ...
0
votes
0answers
95 views

Display form submit success message

I have created a user profile form on my website to allow users to edit their user details on the front-end. Below is the code im using which works and updates their details, however once they have ...
0
votes
1answer
49 views

Understanding Wordpress theme files and underscores

I'm just starting learning wordpress. I decided to go with the underscores starter theme to develop my own custom theme. And I've got some questions. I suppose there is an answer to my question in ...
0
votes
2answers
82 views

Displaying theme options in css

I am literally pulling my hair out trying to figure this out. I have been at it for almost 12 hours now. Being new to PHP and theme development I am having a hard time understanding how to get ...
-1
votes
1answer
44 views

What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]

I'm new in wordpress theme development, I want ask some question here, I want to make a parallax effect for my theme header like this: TestParallax.com this is made by using some JS code, I want to ...
0
votes
1answer
26 views

How to call a widget in a loop at a specific iteration value?

On the index page of my website. I want to display a widget in the third position. I am calling the widget through "the_widget( 'Widget Name' );" code. Now the problem is, since it doesn't return ...
0
votes
1answer
29 views

New theme HTML5 Support for Search in WordPress 4.4

I'm kind of new to creating my own themes with WordPress 4.x so I hope it's not too boring. In search.php I'm using this code: get_search_form () Also, I got this code in searchform.php <form ...
0
votes
1answer
35 views

active link for most recent post on vertical tabs

I'm trying to add the css class .is-active to my vertical tab links inside my loop. By default, the page loads the most recent post first. How can I make most recent tab/post active with .is-active? ...
0
votes
1answer
33 views

How To Display Category list from Portfolio post type plugin?

I'm new from WordPress development. I want to display portfolio category list in my theme, I'm useing portfolio post type plugin what must I do ? what code or WordPress function must implement in ...
0
votes
1answer
38 views

Plugin does not work in custom theme

I created a new theme, starting by zero. The theme works correctly, but some plugins not. I installed Google Analytics & Webmaster Tools, I compiled the plugin with my track codes, but in the ...
0
votes
1answer
29 views

using part of a theme in another theme

So I have a divi theme I have been using to build a site... only thing is I wanted a portfolio section that was quite specific so I ended up using the wanchai wordpress template. I have both ...
0
votes
0answers
30 views

Customizer not working when developing on localhost using gulp

I'm hoping someone has encountered this before and has a simple solution. When using gulp to develop locally, the customizer doesn't load. JavaScript console gives the error: customize.php:1 ...
-1
votes
1answer
47 views

Using is home to get content [closed]

I'm looking to use is_home to 'get content' as I would like my blog page to echo a header, content and date/time but I only want all other pages to get the content. This is what i have so far... ...
0
votes
1answer
92 views

Wp_query WooCommerce products

I'm currently developing an e-commerce store using Wordpress and WooCommerce. I'm planning on creating a basic product filtering system and was wondering if it's possible to wp_query the results shown ...
0
votes
1answer
27 views

How to implement conditional PHP in Footer

Hoping for a little bit of help...I have added a script in footer.php and I want the script to run on all pages but not on "contact" page. What would be the coding/conditional to do this? Thank you.
0
votes
1answer
53 views

Translate a child theme with pure PHP and gettext

I'm trying to translate a child theme of a parent theme that has all msgstr empty. Therefore, I've created the file de_DE.mo using the "WordPress i18n tools" recommended in the docs together with ...
0
votes
0answers
17 views

Create a custom theme-specific page, invisible in the admin-panel?

I've learned that when I want a custom page, I need to create a page template, create my page and assign the template to it. Also I've read about fake/virtual pages, where the page is generated on the ...
2
votes
1answer
80 views

Flexible Wordpress theme creation using themes

I'm working on a plan to build new Wordpress themes very rapidly. Though, I have some question about it's implementation. Here's the plan. Discover what the content is the client wants on their ...
0
votes
1answer
30 views

How to set wp_options in functions.php for removeing the Default Front Page

I want to disable the default front page as I want to show always the first listed page in the frontend. Therefor I disable the Static Front Page. But I have also to set in wp_options the variables ...
4
votes
4answers
196 views

What is a good way to pass a variable from add_action to a Theme?

Inside functions.php: add_action('init','my_action'); function my_action() { if($dontknow) { $passme = "yes"; } else { $passme = "no"; } } Inside index.php of the ...
1
vote
1answer
86 views

Understanding the WordPress template hierarchy

I watched a lot of courses about Wordpress Development on Udemy. Also I've almost finished my "Wordpress Development" track on Teamtreehouse, but I can't understand one simple thing, because one ...
0
votes
1answer
21 views

“Add media” dialog is not showing any images

When pressing the "add media"-button on the edit post page, it opens and the loader keeps spinning without it displaying any images. The images shows up just fine in the media library tab of the ...
0
votes
0answers
28 views

Checking supported arguments in theme features ( current_theme_supports )?

I think I wan't to use get_theme_support since it returns an array of arguements where current_theme_supports doesn't (as far as I know). For example, here's a theme support in genesis for adding ...
0
votes
1answer
18 views

Weird 'theme update' error

I am developing a theme (which I am calling AsylumInfo) that gets built into a directory call /build and I have symlink from there to the wordpress setup on my computer. When I use wp-admin I get ...
0
votes
1answer
32 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
0
votes
0answers
23 views

Plain text (HTML) in wordpress admin

I am developing my custom theme and I noticed that some of the links result in showing me plain text HTML instead of normal webpage. I tracked down the issue and found out that this happens when I ...
0
votes
2answers
46 views

How can I fix those issues generated by the Themecheck plugin

I've got the following error messages on the themecheck plugin in my WordPress theme. REQUIRED: The theme uses the register_taxonomy() function, which is plugin-territory functionality. ...
4
votes
1answer
103 views

Comment form not display properly?

I want to display comment form in my blog page comment_form() work properly but its display like that: Comment name email website But this form should be display like that ...
1
vote
1answer
23 views

Is accessing theme and using customizer GPL distribution?

I am theme developer and I want to make a "demo" website, where people to which I give password will have access to nearly all theme functions (except theme editor) -> they won't have full admin ...
0
votes
1answer
51 views

Bootstrap grid system is not working in my Wordpress theme

I'm a long time Wordpress user but this is the first time I dared to build my own theme (while following a tutorial though). I'm trying to use Bootstrap as the layout tool for the theme, but for some ...
0
votes
1answer
33 views

How to debug theme (Theme is causing pages to have no style or HTML <head> section)

I have a WordPress theme given to me by a client, so not familiar with it at all. Activating the Twenty Sixteen theme resolves the problem, so it's not a plugin but definitely the client's theme. ...
0
votes
1answer
36 views

How to determine if WP_DEBUG is enabled? [duplicate]

I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer ...
0
votes
0answers
22 views

Why the output of an image gallery plugin is not displayed into a page of my custom theme?

I am pretty new as WordPress developer and I am going crazy with a theme developed by myself starting from 0. So, at this link you can download the entire theme so you can see in the details the ...
0
votes
1answer
18 views

Fixed button and slideshow in template upload per page

For all products there is a different page. Every product page will have the product template. On this template I'll have 3 download buttons and a slideshow. Now I want that when making a page for a ...
-1
votes
1answer
56 views

Convert Html5 to Wordprss

I do design a HTML5 template.now i want convert that template to wordpress theme.i was convert main page(Index.php). now i want two page, one for create a section in my theme for blog which show ...
0
votes
1answer
44 views

Single page for Custom Post Type not found

I made a custom post type named rt_test in a WordPress plugin as follow: register_post_type( 'rt_test', array( 'labels' => array( 'name' => __( 'Tests' ), ...
0
votes
0answers
43 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
1answer
25 views

Display Page featured Image as well as Posts featured Image

Ok, I have hit a bit of a roadblock. I have a page that has been set to display the posts (which have their own featured images). I tried calling the posts featured image in the loop (which worked), ...
0
votes
1answer
38 views

Installing WordPress on a long temporary URL from host

I'm designing and developing a WordPress site to replace a 2005 HTML/CSS site. My client's hosting company said they were switching systems and his is one of the last to move, so they set me up on a ...
6
votes
1answer
158 views

Understanding Wordpress functions' naming conventions

Many Wordpress functions follow naming conventions, probably the most well known of these would be the the_*() functions, such as the_post(), used in The Loop. Obviously the is_*() family of ...
1
vote
2answers
31 views

What is the correct way to update both WP/plugins/themes without breaking the site?

We seem to get Wordpress core updates/plugin updates/theme updates thick and fast and usually every day. When managing a third party Wordpress, what is the best procedure to stay secure and have a ...
-1
votes
1answer
56 views

WP site makes mobile browser crash for high memory usage

I have this site: http://theguiltycode.com It uses foundation as a theme and is hosted in bluehost. I can load the site without much problem in desktop browsers, but in mobile the site reloads like 3 ...
0
votes
1answer
81 views

How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags

I am trying to post static pages with HTML content. So I need to disable wpautop, but when I do this my content is stripped of all <p> tags it has. I remove the wpautop filter from my ...
0
votes
1answer
42 views

How to add custom nav_menu_css_class to certain menu only?

I want to add a custom CSS class to menu items. So far, I got it working by using the filter hook nav_menu_css_class. However, I want to add this class to items of a specific menu only. So, how must ...
0
votes
1answer
24 views

Get chronological page order

I just want to know if Is there a way to get chronological page order by page ID ?? $args = array('order' => 'ASC', 'orderby' => 'date', 'post_type' => 'page', ...
4
votes
1answer
50 views

comment_form() generates the wrong action url

I created the file comments.php. Inside it I have a manual loop for my comments section. I loop from offset = 0 + ((page - 1) * total_per to offset + total_per). The problem is when I add new ...
0
votes
0answers
27 views

Child theme not overiding parent on some but not other elements

working locally so cannot link to site, but my issue is that I have changed the twenty twelve child theme .site-content to margin 0. I want to reduce the space between the header and the main content. ...