A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

learn more… | top users | synonyms (2)

1
vote
3answers
5k views

How to Insert Shortcodes into Theme?

I have content locker plugin. For locking contents, im using this shortcode: [wp-like-locker] Your locked content here... [/wp-like-locker] and I need lock every post on my blog. How could I ...
1
vote
1answer
1k views

How to use get_page_by_title() with qTranslate?

Any idea how I can use the WP function get_page_by_title() with qTranslate installed? for example: $page_contact = get_page_by_title( '_e("[:en]contact");' ,'page' ); $page_contact_ID = ...
1
vote
2answers
3k views

Changing $before_widget for certain widgets

So I'm working on designing a Wordpress theme with lots of extra widgets. The ones I have added are in separate files, and called in the functions.php I have lots of css on the widgets themselves and ...
1
vote
1answer
1k views

How do I put my comment form above the comments?

The default way to do things seem to have the comment form below the comments. I'd like to have the form at the top. How do I achieve this?
1
vote
2answers
13k views

Display a specific dynamic sidebar widgets on a specific page

I have had a wordpress site handed off to me halfway through completion. It's been at least a year since I last used wordpress and there are a lot of things I'm finding different. The way I am used to ...
1
vote
2answers
445 views

adding multiple sidebars on pages

I am using twentyten theme and I want there to be two sidebars on my page - one on the left and the second on the right. Can any one tell me how to do that?
1
vote
1answer
165 views

Varying Search Result Pages

I have two different kinds of search results on my site and I'd like to change the look of the search result page entirely. I've played around with the search form a bit but I'm unsure how to force it ...
1
vote
1answer
456 views

What are non-printable characters doing in my theme?

* REQUIRED: Non-printable characters were found in the 'functions.php' file. You may want to check this file for errors. What are non-printable characters and how can I correct it?
1
vote
2answers
731 views

How do you get thumbnails to show up in the admin edit post?

I tried to add thumbnail support to my theme add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size(133, 133, true); add_theme_support( 'post-thumbnails', array( 'post' ) ); ...
1
vote
1answer
412 views

How to set a single theme directory on a multisite blog?

Some days ago I've upgraded my single-site WP installation to support a multi-site WP website. So I've created two new sites and set the same theme I was using on my single WP blog before. But ...
1
vote
4answers
414 views

wordpress theme backend admin only

Does anyone know of a theme that completely removes all uses and aspects of the frontend. So the sole use of the site will be in the admin section. to use as a portal for something like a school or ...
1
vote
1answer
3k views

how to add custom fields in page

I am still new to Wordpress and I want to insert a featured content gallery into a Wordpress page. I tried to do it myself, but it wanted me to use custom fields. Where can I add custom fields, is ...
1
vote
2answers
1k views

Add a series of checkboxes to theme options

Hi I made a theme options by this tutorial This options have multicheck type by checkboxes. I don't know how to make it work. I'm try to exclude page using this multicheck. This is my array with ...
1
vote
1answer
10k views

Adding a Template to the Page Attributes Panel for both Posts and Pages?

I would like to keep my main theme as the active theme, but allow users to select a slightly different layout via the "Page/Post Attributes" panel. Ideally, I'd like to store this layout under my main ...
1
vote
1answer
146 views

Wordpress Theme Development Seemingly Awful Partitioning of Includes?

I just finished a tutorial that told me to create my header.php without closing a tag at the bottom of the included file. Now while I realize that in anyone of the parent files which includes ...
1
vote
1answer
350 views

Why do Trackbacks/Pingbacks not appear below my posts/pages?

My wordpress required me to check some Trackbacks and I checked and accepted them. They are listed in the comment administration and I activated "allow Trackbacks/Pingbacks on this page" on the ...
1
vote
1answer
40 views

Getting headers property from WP_Theme object

Using wp_get_theme returns an object holding the properties of the current theme. The headers property contains any array of information I wish to access. I can access the other properties using ...
1
vote
2answers
32 views

How to Know if a Plugin can be used with my Theme [closed]

I am new to wordpress & I am using a paid theme on my site www.freelancepulp.com I want to know how I can identify if a plugin is good suit for my theme or not? I had to remove all the plugins on ...
1
vote
1answer
57 views

Parallax WordPress theme without hardcoding - possible?

I want to develop my first Parallax WordPress theme, just for the fun of learning this stuff. I found this snippet: http://jsfiddle.net/cse_tushar/Dxtyu/141/ It lets the user click on a menu item ...
1
vote
1answer
105 views

What's the proper way to include inlined javascript-source?

I'm making a theme where I'm including a javascript-lib which wants to be loaded/instrumented with a potion of generated code at document.ready()-time. Generated because some theme-options are ...
1
vote
1answer
332 views

Embedded Videos (PB) - Not Available

I am using this link to create a wordpress website VIDEO At minute 53 the guy is using "Embedded Videos (PB)" widget in order to embedd a youtube video. (By the way he is using Page Builder). Problem ...
1
vote
2answers
424 views

Single Page Wordpress Theme - Using page templates

Well I am lost, its late and I have been searching google all night. Heres the problem I am running into. I am trying to create a singe page website using wordpress "pages". How I have initially setup ...
1
vote
2answers
84 views

Hide default “Recent Comments” Widget if there are no comments yet

Is there a way to hide the widget completely if there are no comments yet? I was thinking about maybe adding a php function to my functions.php file - is that a possible way? If so, can someone ...
1
vote
1answer
28 views

How to understand a specific bit of Wordpress syntax

I am changing a theme in Wordpress, and in an earlier theme, there was something like this that added a an email signup widget to the page: [green_tick_1_list width="100%"] But in the new theme ...
1
vote
1answer
39 views

How to know if user choose to show full post or excerpt?

I've seen there is a setting to choose whether to see full posts or excerpts on feed. However I'm using a theme that doesn't seem to support this functionality (it always show the full post). For this ...
1
vote
2answers
272 views

How to unset comment_notes_before field in WordPress comment_form

I am trying to remove Your email address will not be published. line from comment form in twentythirteen and twentyfourteen default themes. I have tried this: function ...
1
vote
1answer
175 views

First post of each category

I'm trying to create a simple loop, that gets the latest post of 3 selected categories. I've searched for something similar to learn from, but most are overly complex. At the moment, I have: ...
1
vote
2answers
2k views

woocommerce Add custom field set like billing fields

I am working on E-commerce functions where i require to Add custom fieldset as Profile Fields the fields in it are as billing Below are the Fields that is needed in My Check out and signup form ...
1
vote
2answers
227 views

Which hook callback has priority if both plugin and theme use the same hook?

If a theme and a plugin uses the same action hook, for example comment_form is used by both theme and plugin. Then , which one will be called first? the function associated with the theme's hook or ...
1
vote
1answer
606 views

How to move theme directory but not plugins/uploads out of WordPress root directory?

I am trying to set up a few local multisite installs that will share the same themes folder, but have separate upload and plugin folders that will be in the usual places in wp-content. UPDATED: ...
1
vote
1answer
41 views

Set multiple templates per post

In Joomla! articles can use multiple templates. I could only put ath the end of url ?template=templatename and article uses the template "templatename". Is this possible in Wordpress?
1
vote
1answer
1k views

Widgets menu does not appear under “Appearance” in dashboard

I am developing a WordPress theme, but am stuck on widgetizing my theme. I have followed several tutorials but still cannot get it to work. My widgets menu does not appear under Appearance in my ...
1
vote
1answer
73 views

How to remove comment link title attribute?

When I hover over any post's comment link, I see the title: "Comment on Post Title". How can I remove it? I could not find this text in the theme. Edit: Here's the source which generates the comments ...
1
vote
1answer
417 views

why does bones theme call the_excerpt function with parameters?

I have been triying to localize a wordpress site which uses Bones as the theme. In the theme's search.php, there is a line that goes: <?php the_excerpt('<span class="read-more">' . __('Read ...
1
vote
1answer
229 views

How can I let templates choose which stylesheets are enqueued?

My theme's functions.php hooks into wp_enqueue_scripts to register a couple of stylesheets that are used by various site pages. Here's a simplified version of my configuration: ...
1
vote
2answers
107 views

How does a Child Theme works?

I created a child theme and installed it but I don't know how exactly it works! For example, in the parent theme I have the code below: .header { margin-top: 10px; margin-bottom: 10px; ...
1
vote
1answer
430 views

Animated gif for a thumbs

I need to insert an animated gif for a feature image but I don't understand if is possible. Right now when I try to upload a gif, wordpress create automatically a gif single frame. Is it possible ...
1
vote
2answers
3k views

Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067

Hey i get this error messages on my localhost setup, but only with the genesis framework enabled, wordpress twentyeleven works fine. This does happen when i want to create a new post. If i refresh the ...
1
vote
2answers
579 views

variables in translatable text

I am adding a list of suggested plugins to my theme using TGM Plugin Activation - https://github.com/thomasgriffin/TGM-Plugin-Activation/ However, when I run theme check, about 40 or so ...
1
vote
1answer
3k views

Calling widget via function in themes files (hard code)

Finally I finished to write my widget, and now want to call it using function inside themes php files. My widget looks like this: function reg_custom_widget() { ...
1
vote
1answer
217 views

Should a child theme share the same theme options row as the parent, or should it have it's own options row?

I'm developing a theme which uses the NHP Theme Options Framework to add some theme options. Naturally, the theme options framework creates a single row in the database to store the theme's options ...
1
vote
2answers
129 views

How do i structure my theme folder to avoid one huge list of files

When working with a worpress site with lots of custom post types and lots of page templates, my theme folder is looking messy. What are the accepted best practices to organise code files in WordPress? ...
1
vote
2answers
80 views

Posts vs. Pages

Okay so I've spent the last few weeks (on my spare time outside of work) creating a site for a client with a custom built theme. This is my first use of wordpress and the site can be seen here at ...
1
vote
1answer
145 views

Generating the ogp tags in theme

I use to generate the ogp tags in themes I code but this commercial one is beyond my knowledge. The client want to share a page but any image option shows up. Instead of a taxonomy-name.php template ...
1
vote
3answers
255 views

Removing feeds from header using a function?

I want to remove the default RSS feed, which I can successfully do by adding this in functions.php file. remove_action( 'wp_head', 'feed_links', 2 ); However, It is important for me to use this in ...
1
vote
1answer
1k views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
1
vote
2answers
243 views

Select menu on browser resize

I have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done? I know there is a plugin for that, but I want to ...
1
vote
1answer
97 views

Can i have a single wordpress site to have two themes ( one for pc other for mobiles)

I have a wordpress site say at www.demo.com, now I have two themes one which I want to use this user is acessing the site from "PC" (computer) and a another theme, which is a full fledged mobile theme ...
1
vote
1answer
2k views

Translated my theme (translation not showing up)

I read a lot about what is the optimal to translate your website (french and english in my case) I set up a Multi site where I created two site one french mywebsite.com/fr and one in english ...
1
vote
1answer
742 views

What's the order of loading wordpress elements?

I currently try to make a theme for wordpress and I'm confused about lots of things. I'm not sure what's the order of loading wordpress elements, where some variables are available, where they are ...