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

learn more… | top users | synonyms

2
votes
1answer
941 views

Wrapper class: How to get rid of call_user_func_array() warning?

I have several installations of wordpress and now im trying to create my own small framework so I can create and maintain my themes more efficiently. What I would like to do is to have a wrapper for ...
0
votes
0answers
11 views

What is the most effective way to share assets / templates between themes?

I have a multisite network, which uses a few different themes. These themes share a lot of the same layout and structure, but they differ mainly by organization / content / templates. In other ...
0
votes
0answers
11 views

Improve my timetable's code

I'm working on a wordpress theme and creating a time table who will be easy to complete by users. In the back-office, there are a checkbox for each days : <input id="checkbox1" ...
2
votes
0answers
9 views

Is there a way to activate different theme for specified users?

I'm looking to allow beta testing of a theme on WordPress site in production. I was thinking of a plugin to check if WordPress user has been selected for beta phase, and if this evaluates to true ...
0
votes
4answers
406 views

How to remove text “Log In” from login page

I am using Theme My Login and have noticed that, even though I am customising my own login-form.php template and simply including the appropriate form on a blank page with theme_my_login();, the text ...
0
votes
0answers
9 views

Trouble adding arbitrary menu items to Walker_Nav_Menu

I am trying to manually add two items to my menu because I want them to be (linked) images, and I don't believe there's a way to do that without some custom code. Going off the instructions in This ...
0
votes
1answer
15 views

Duplicate WordPress site to subdirectory but use same db?

I have tried to just copy the whole root folder into a subdirectory. I understand the .htaccess file has to be changed. But can't get it to work right. Is it something more than changing the htaccess ...
0
votes
1answer
13 views

Extract and display user infromation on an automatically created page

Is there a way to get the block of code below to extract a list of given user information as it creates the page for the new user. It creates new page for new user as supposed but I'd like it to alos ...
0
votes
1answer
415 views

Why is contact form not working?

I am using a custom contact form plugin from code.tutsplus but it is not working. It looks as if the form is sent because I get the confirmation badge, although I receive no email (I have tried ...
0
votes
0answers
23 views

Can I have a widget and sidebars in custom theme?

Wordpress 4.1.1: simular problem to another question: I have a add_action widgets_init call back in which I have a call to register_widget that registers a class and a call to register_sidebar that ...
0
votes
1answer
4k 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 ...
0
votes
1answer
31 views

Create theme for mobile phones and tablets only?

I've been checking the docs but I only found a way to use different style sheet for phones and tablets. Is there a way to create another different theme only for mobile phones and tablets? And I'm ...
0
votes
1answer
30 views

Recent post in the middle of the content

My site has a static front page and a blog. I'm using the Foundation5 grid and I've split the content of the homepage onto three rows, like this, and I'm updating both the content and the html in the ...
0
votes
1answer
28 views

erase post excerpt limitation [×]

i have a custom site in homepage have problem of post excerpt with max 35 word, now i want eliminate this limitation, after search in varius file the limitation and after individuate i have changed ...
2
votes
1answer
39 views

get_option function

I'm currently trying to make my own theme, but i'm not quite sure how the get_option() function works, because how come this.. echo get_option('show_header', 'sultenhest_theme_display_options'); echo ...
0
votes
2answers
20 views

How to prepare the HTML for Wordpress [on hold]

Right now I'm finishing a design in Photoshop and I'm about to turn it to HTML. After that I'm want to turn it into a Wordpress theme using Underscores starter theme. How can I prepare the HTML so the ...
0
votes
1answer
477 views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
0
votes
1answer
16 views

Avoid theme updates, just one theme

I stupidly created a ton of websites with custom themes (not child themes, 100% custom) and named my theme folder "custom". Now they are starting to auto-update and get replaced with some theme from ...
0
votes
0answers
16 views

Add crop function to media upload

I'm making my own theme and i basically copied this image upload: http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/ ..but since its for a ...
0
votes
1answer
9 views

Excerpt for pages not showing

I am creating a simple wordpress theme and need excerpts for pages. I have tried the code from many topics some resolved on 'wordpress SO' but nothing works. Because I created the theme from scratch ...
0
votes
0answers
59 views

Upgraded from roots to sage and now have an error in functions.php [closed]

Upon upgrading from the roots theme to sage (which now requires at least php 5.4), it's giving me an error: Parse error: syntax error, unexpected '[' in .../functions.php on line 12 The code that it ...
0
votes
0answers
16 views

Customizer API way function is_customize_preview() works only in main page?

Dear wordpress developer, Thanks for create incredible API like Customizer :) but I have little problem. In customizer preview view function: is_customize_preview() when I'm in home page return true ...
-2
votes
0answers
18 views

Resolved :Redux adding JSON data to body when I change anything during LIVE PREVIEW mode of WordPress [closed]

verything was working fine and I updated my redux through redux builder from 3.3.4 or .6 to 3.4.1 then something went wrong with Live Preview while everything else is fine. Redux Version Version: ...
0
votes
0answers
19 views

page.php is not called when I load a Page

page.php is not called when I load a Page from my theme. However if I switch to the default wp theme and reload the page (not post), then only my header and footer are displayed. I added some text ...
0
votes
1answer
12 views

Menu order of parent menu from perspective of child menu

I have developed a theme which has a parent menu and a sub-menu. It looks something like: Main menu ==> category | price | depot sub menu for category ==> tag| name | date ...
2
votes
2answers
1k views

How to use filter hook 'post_updated_messages' in coherence with action hook 'save_post'

I am trying to send out e-mail, SMS and IM notifications to group members of this WordPress website, whenever a WordPress page in their user group has been published/updated. I figured using the ...
0
votes
2answers
26 views

How to figure out which wordpress theme a site was using?

I create 20-30 WP sites a year. Often when I am specing out what the person wants they give me an example site from the internet. We want "that" but with our look. I can create "that" but it seems ...
1
vote
2answers
800 views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
-5
votes
0answers
21 views

Suggest me themes for E-commerce for Wordpress [closed]

Hello I am new in wordpress i need to design my site like this. Please suggest me appropriate themes for it. Main functionlaity of my site exactly like given in this page
0
votes
2answers
24 views

Using $post->post_name in body id causing error: Trying to get property of non-object

I'm getting the following error in my debug.log: PHP Notice: Trying to get property of non-object in /my-wesbite/wp-content/themes/express/header.php on line 36 This is line 36 of header.php in my ...
0
votes
2answers
2k views

Conditional tags issue for multiple is_page() conditions in sidebar.php

I've been pulling my hair out today trying to get this right. Basically I have a sidebar, which makes requests to individual files (such as sidebar-home.php, sidebar-residential.php) and different ...
1
vote
3answers
824 views

Custom markup with wp_nav_menu based on pages

How might I have custom markup for my menus, like I want to give menu items something like id="menuitem-postname" how might I do that?
51
votes
4answers
57k views

Menu items description? Custom Walker for wp_nav_menu()

Normal Wordpress Menu looks like: Home | Blog | About us | Contact But I've seen many pages with descriptions under these links: Home Page | Our Blogs | About us | ...
0
votes
0answers
8 views

Customizer API and add_panel(). Panel doesn't show

I try to add panel to my customizer but code below doesn't work (panel don't show in customizer container). My code: add_action( 'customize_register', 'customizer_test' ); function ...
0
votes
3answers
36 views

wp_redirect() - headers already sent

I am trying to use wp_redirect() to redirect the user after successfully submitting a signup form on the page. It's not working and shows the following error: Warning: Cannot modify header ...
0
votes
0answers
15 views

Flexslider not working for my theme

I had an issue with the border of iframe which i resolved by putting the following code in the css in the custom css : frame { border: none!; important } However, when i undo the code ...
1
vote
2answers
373 views

WP Customize refresh problem

Hi I am adding options to WP Customize. Mostly everything works, but One of my variable is not refreshed in the preview window. $wp_customize->add_setting('checkbox', array( 'capability' ...
0
votes
0answers
10 views

Strange class change, sub-menu to children

I am working on a theme for Wordpress. I just uploaded my whole Wordpress installation (including the theme) to a web host so that I can test my theme public. I have added some css behaviour on the ...
4
votes
4answers
767 views

Any walker causes blank menu?

Using the following, or any other custom Walker_Nav_Menu seems to cause a blank navigation menu, I tried specifying the default to make sure I wasn't going crazy yet it still blanks the output... Any ...
0
votes
1answer
634 views

How to add menu support to a theme?

I tried few tutorials. All i think is i should use register_nav_menus() and then add the menu in header.php Here is the code i tried in functions.php from this help site itself function ...
0
votes
1answer
10 views

Execute upgrade-theme with coding

I'm executing some functions remotely from xmlprc with wordpress. I would like to run upgrade-theme remotely for theme that I develop. Assume that wp knows there is new version of theme. ...
0
votes
0answers
13 views

How to add large backstretch banners to pages

I would like to have banners that break up my pages, inside these banners I would like to be able to add quotes. Can anyone tell me how best to achieve this? Ideally this isn't me simply adding banner ...
0
votes
1answer
14 views

Is there a way to retrieve the calling template part?

If I include a template part within header.php like this: <?php get_template_part('templates/social-icons'); ?> Is there a way to retrieve the template name header.php within this ...
0
votes
1answer
24 views

Advantages/Disadvantages Using Theme Editor Instead of Pages

I'm working on a site and I prefer to create the site using the WordPress pages system. A co-collaborator assisting me with the site prefers to add pages using Theme Editor. My first thought what is ...
1
vote
0answers
33 views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
0
votes
0answers
15 views

Wordpress theme line 2 error - only on certain feeds

I am developing my own theme and I am currently running WordPress 4.1 When I browse to /feed I get errors in my browser. Chrome: This page contains the following errors: error on line 2 at ...
0
votes
1answer
21 views

Unwanted empty line at the beginning of document

I have an unwanted empty line at the beginning of the document and I can't find the reason why it is happening. For default HTML I wouldn't have minded it but RSS doesn't work. I disabled all the ...
0
votes
2answers
30 views

How to sanitize select box values in post meta?

I have added a select box in the Post meta. Here is the code, and it works fine. My question is, do I need to sanitize the values before updating the post meta? If yes, how it should be done? This is ...
0
votes
2answers
474 views

Creating a Link Text like Submit Button in Admin Page

I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages. I tried this but didn't work well. <a href="" cless="button-primary" ...
-1
votes
0answers
21 views

Not Founded Add New theme button

I have default wordpress theme that i want to upload in my worpdress account to use. I search on internet for my problem and every where i founded that i need ADD NEW button under the APPEARANCE ==> ...