A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.
1
vote
1answer
67 views
Protect changes made to the theme when updating
I customized the wordpress theme I'm using by changing php, css and even a js file. Is there a way to protect these changes, when updating the theme to a new version?
1
vote
3answers
1k views
How to change sidebar per page?
I am new to theming with wordpress. I have a theme layout with one sidebar at the right side of the website.
Now on my homepage and one other page i dont want to have the sidebar. On all other pages ...
1
vote
4answers
501 views
Wordpress Theme for Video Showcase
Does anyone know of a good theme for showcasing multiple Youtube videos? Thanks!
1
vote
2answers
103 views
How can you showcase various premium themes to clients without having to pre-purchase the theme?
If you use a premium theme service (my skills lie more in coding than artwork), what is a good way to show clients examples of what themes are available to them, without sending them to the theme ...
1
vote
2answers
47 views
Child-theme breaks site
So, I have a child-theme with nothing but the required CSS file in it. Once I activated this child-theme my entire site is down. I end up with 2 questions:
How can activating a child-theme with ...
1
vote
1answer
32 views
Theme Check: Could not find post_class
I've inherited a theme from a another developer that I've re-styled for a client. We're just about finished, but I thought I'd run it through the Theme-Check plug-in to see if there's any errors or ...
1
vote
1answer
237 views
How to put a banner ad between post 1 and post 2 on homepage only
Wordpress Swift Theme is installed on my My site http://tech-ticks.info
From last few days, I am trying to find a solution to put an ad banner on homepage only between post1 and post 2. I have ...
1
vote
1answer
97 views
How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
I've created my own theme based on a very lean template. My theme is not parsing the [caption]...[/caption] markup to the correct html. It's just showing the text without any markup around it. Here ...
1
vote
4answers
187 views
Disable author pages for specific users
I want to disable author pages for certain users, for example the admin user doesn't post anything but still has an author page.
Is that possible? Maybe a plugin that adds an option to the users ...
1
vote
1answer
110 views
Changing the template hierarchy
Is there an easy way to change the WP default template hierarchy?
For instance;
Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
1
vote
2answers
68 views
Which themes do you use to test compatibilities with your plugin [closed]
When developing a plugin, I usually test it with the following themes before public release:
TwentyTen by Automattic
TwentyEleven by Automattic
Coraline by Automattic
Duster by Automattic
Hybrid by ...
1
vote
1answer
485 views
Why is get_post_format() for “Standard” returns empty
I've enabled custom posts types
add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );
The default post type is set on Standard, and it works for all ...
1
vote
1answer
229 views
Hide a theme on list of themes in wp-admin without editing core files
I'm running a multisite network with 200+ themes installed and activated. Is there a way to manipulate the list of available themes in wp-admin so that certain theme does not appear in the list? I ...
1
vote
1answer
290 views
Change Default Image HTML
I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images
<a ...
1
vote
1answer
155 views
How to set different settings for a mobile theme?
My desktop version of wordpress theme requires using a 'static' page as the start page as it has custom shortcodes etc.
While this is good, when it comes to my mobile theme, sadly the 'static' page ...
1
vote
3answers
2k 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
452 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
3k 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
167 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
109 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
133 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
418 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
275 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
1answer
969 views
How can I get the title attribute from get_the_post_thumbnail()?
In my theme I want to display the featured image, but I also want to display the title attribute (of the image, not of the post/page) beside the image itself.
Is there a simple way to do this? Where ...
1
vote
4answers
253 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
2k 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
131 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
248 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
15 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
62 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
57 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
66 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
101 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
146 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
306 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
266 views
Custom post types and child theme
Okay, here's the deal. I am working with a child theme and I want a custom post type.
What I did
Added the following code the functions.php of the parent theme.
add_action( 'init', ...
1
vote
1answer
94 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
83 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
70 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
64 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
143 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
594 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
147 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
65 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
5answers
3k views
How to get category and archive title?
When I query the category (category.php), how to get the name of the current category, ie., the one that is being queried?
And for tag and date (be it the day, the month or the year)?
Thanks!!
1
vote
1answer
649 views
How to add pagination to my code?
I just want to ask how can I add pagination here in this code:
<?php if ( get_option('webly_display_media') == 'on' ){ ?>
<div id="recent-projects">
...
1
vote
2answers
766 views
Wordpress ignoring specified template for front page. Why?
I'm using the Roots theme which with custom css.
I'm using the page "Home" as the front page the page "Blog" as the blog page (in WP reading settings)
I'm trying to set the front page "Home" to use ...
1
vote
2answers
1k 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
68 views
Is it mandatory to have a link to the theme designer?
I just wanted to know if it's ok to modify/remove links pointing to the designer of the theme.
In my case I have "theme by" and the site's logotype, would it be ok to remove the logotype and write ...
