Questions tagged [theme-development]
Themes create the public (front-end) interface for a WordPress site.
4,429
questions
1
vote
2
answers
979
views
How can I remove specific custom post meta from the "Custom Fields" fieldset?
I've created a custom meta box to handle certain custom post meta fields and I don't want the clutter of having these custom fields duplicated down in the "Custom Fields" area.
How can I remove ...
0
votes
2
answers
641
views
WordPress 3 botches my Custom Meta Box values on Save
My theme has code that places a custom meta box on the Page editor interface for toggling noindex and/or nofollow attributes to the page.
Its a simple little deal with two checkboxes, one says ...
1
vote
2
answers
6k
views
how to load the language file in plugin?
I'm unable to load the plugin's locale file (.mo). I did all the procedues described in the http://codex.wordpress.org/Writing_a_Plugin but its not working. If I the lang string to the wordpress ...
6
votes
5
answers
3k
views
Form Submitting Error with get_template_part()
I have come across an interesting problem regarding the get_template_part() .
I have created a theme options page (named sitewideSettings.php)
normally I would include this in functions.php like so:
...
1
vote
2
answers
736
views
How do you apply multiple skins to a site via the "templates" selector using stylesheet switching?
I'm just getting my feet wet with templates and have a few questions.
First, Ideally, my templates use the same structure as my main theme, however, they simply use a different stylesheet and images.
...
4
votes
2
answers
17k
views
Changing the visible url path to css & js files
Does anyone happen to know how I can automatically turn:
http://www.example.com/wp-content/themes/theme-name/css/stylesheeet.css
into
http://www.example.com/css/stylesheet.css
Naturally I could ...
7
votes
2
answers
10k
views
Generating CSS Files Dynamically Using PHP Scripts?
As part of my efforts to speed up my themes for my clients I am delivering my CSS via a dynamic PHP file. At the end of the called for example my_theme_css.php:
This allows me to add Expiry headers ...
2
votes
1
answer
140
views
Are there any Worpdress plugins to change the theme editor?
I've been browsing around a bit, but haven't been able to find any plugins for changing the default theme editor. Currently it's a text area with no syntax highlighting. I'd like something that at ...
1
vote
1
answer
2k
views
How can I display/hide certain content based on a Theme Option field?
I'm building a Theme Options page for my theme, and I've managed to get most of it working fine. But now I'm trying to show and hide certain parts in my theme based on a simple check box. An example:
...
1
vote
2
answers
8k
views
How to edit theme functions file to modify pagination?
By default, when adding <!--nextpage-->, the following links are displayed:
Pages: 1 2
I need to replace "Pages:" with a graphic arrow which links back to the previous page, and append a ...
2
votes
3
answers
754
views
How do I add a post to a menu
I'm trying to get WordPress to highlight a specific item in my menu when a post (any post) is viewed. I'm thinking that adding the post to the menu item, then suppressing display of sub-menus might ...
3
votes
2
answers
1k
views
Multiple Custom_Background, is it possible?
Is it possible to create multiple "custom background" administration pages? A site I'm doing now needs 2 different background in 2 different areas, I would really love giving my client the same ...
0
votes
1
answer
249
views
how or where wordress collect unlogged user session
i see the pattern in some theme where we can collect session of unlogged user. for example, in a comment form: After user commenting, user can see that the their comment is waiting for a moderation.
...
3
votes
4
answers
9k
views
wp_nav_menu() custom container and container_id
So today I started work on my first Wordpress theme and so far it's been a lot of fun. However, I have had difficulty in getting wp_nav_menu() to do what I want.
Here's what I want:
<nav id="...
1
vote
1
answer
172
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 ...
3
votes
1
answer
3k
views
Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection.
Is there a plugin (or a ...
2
votes
3
answers
97
views
How can I include a post in a theme?
Sometimes it might be necessary to include frequently-changing content in a theme, but themes take some time to modify, it may also be necessary to let a non-technical user maintain some content that ...
1
vote
2
answers
370
views
JavaScript Files Registered in Parent Theme Won't Load When Calling wp_enqueue_script() in Child Theme?
I'm making a framework parent theme and in the parent functions.php, I want to register all the possible js files I use frequently and if I want it to load it, in the child functions.php I just have ...
3
votes
1
answer
862
views
Setting up partial Right-to-Left admin interface
I am building a custom theme WordPress instance, which needs to be Arabic at the public face and English on Admin site, but with RTL (flush right) in editing fields. My theme takes care of the public ...
5
votes
2
answers
10k
views
Adding Language Support using .pot and .mo files to a WordPress Theme?
How do we add language support using .pot and .mo files in a WordPress theme? And how we retrieve the theme?
40
votes
4
answers
131k
views
How do I get the theme URL in PHP?
I need to get the URL of my theme directory to reference an image in the theme's image/headers directory. How is this done in PHP?
37
votes
10
answers
13k
views
What process do you use for WordPress development? [closed]
I'm interested in how other people develop themes and plugins for WordPress. To me, the in-browser editor in the admin panel just doesn't cut it. Currently, I'm just using an IDE with a PHP plugin (...
3
votes
2
answers
2k
views
Why isn't is_home() working correctly?
I put a if(is_home()) bit in my theme's functions.php and it doesn't seem to work. The function containing this bit is called on init so is_home should work already.
73
votes
4
answers
33k
views
What is the preferred way to add custom javascript files to the site?
I've already added my scripts, but I wanted to know the preferred way.
I just put a <script> tag directly in the header.php of my template.
Is there a preferred method of inserting external or ...
9
votes
4
answers
45k
views
How do register_sidebar() and get_sidebar() work together?
Disclaimer: I am brand spanking new to WP.
I am using the Starkers HTML5 framework theme. In the functions.php I see this code:
function starkers_widgets_init() {
// Area 1, located at the top ...
15
votes
3
answers
22k
views
How to Link External jQuery/Javascript files with WordPress
So I'm using Starkers to base my next WP theme on and I've run into a small issue, I was including my own version of jQuery in the header.php file but when inspecting my site using Firebug I noticed ...
75
votes
27
answers
12k
views
Software for WordPress Theme and Plugin Development? [closed]
What software do you use for your WordPress related needs?
Please state your OS.
On windows XP I use:
filezilla (FTP)
notepad++ (for reading of PHP / CSS files)
firebug (a firefox extension to ...
1
vote
6
answers
5k
views
How to start learning CSS and theme development?
What would be your suggestions for learning CSS and WordPress theme development ?
I have been using WordPress for over 4 years now, but I have never really gotten comfortable with CSS or theme design ...
19
votes
8
answers
2k
views
Where can I learn to create my own theme?
I want to learn how to create a theme for WordPress.
Where can I find information and resources on how to do it?