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)

4
votes
1answer
1k views

The the_post_thumbnail without srcset?

The WordPress 4.4 adds multiple image sizes with srcset when using the_post_thumbnail function. Is it possible to get only one image size without srcset ? I understand that it is possible to add a ...
4
votes
3answers
1k views

Editing Links in the Footer of WordPress Themes with Base64 Encrypted Code?

Some WordPress themes have their links encrypted in the footer and I am not able to edit them if I want to edit the links. This is the example code I found: <?php eval(base64_decode('...
4
votes
2answers
3k views

Using Multiple Themes in a Single WordPress Site?

I've got a subdirectory in which I'd like to implement a completely different theme for my site (basically, its a sales letter). Can someone tell me how to do that? Do I need to install a separate ...
4
votes
1answer
4k views

How to add favicon to my site - in both front end and admin panel

How can I add favicon to my WordPress site in both front end, and admin panel. I've tried many ways, but failed. I know, to show favicon the code is: <link rel="shortcut icon" href="images/...
4
votes
3answers
2k views

How to export/import theme customizer settings?

I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
4
votes
1answer
138 views

What, specifically, should be included in theme_name_setup()?

I’ve “inherited” the development of an old theme that I’m now bringing up to speed for WP 3.9. The theme code comes with a functions.php that has a function theme_name_setup() that hooks into ...
4
votes
3answers
8k views

How to get gallery images?

I have some images uploaded in wordpress posts (eg. post#1, and post#2). Now I've created a new post (eg. Post#3), and in this post I have inserted the WordPress 3.5 gallery, I did not upload any ...
4
votes
2answers
4k views

Moving WordPress.com theme and widget settings to self-hosted site?

Possible Duplicate: Migrating from WordPress.com to self-hosted site and autoforward visitors? How can I move theme and plugin (widget) settings from a WordPress.com site to a self-hosted ...
4
votes
4answers
862 views

Separate Wordpress themes for each category page

I've read http://codex.wordpress.org/Category_Templates, which tells you how to change your index.php for each category. But I want to load a whole different theme directory in for my site when a ...
4
votes
2answers
2k views

Need to create a Theme demo site that features multiple themes

I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and ...
4
votes
3answers
159 views

Using WordPress as piecemeal in existing site?

After some solid advice from people on here about using WordPress for a small (six page) website, I wanted to broach another question regarding using WordPress for a non-blogging site. Yet, I know my ...
4
votes
1answer
2k views

Pre-populating the Page/Post Content Editor with HTML Snippets?

I've built a simple sales page theme and would like to enhance it a bit by allowing the input of default content (including headers, bullet points, testimonial blockquotes and the ubiquitous "add to ...
4
votes
1answer
269 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings in the theme customizer. I generate the live css like it says in the codex: function mytheme_customize_css() { ?&...
4
votes
2answers
46 views

How to incorporate admin theme in my back-end-plugin

I'd like to use some colors from the wordpress admin theme to build my back-end plugin's theme, based on Bootstrap-3 & SASS/LESS. I think I saw a few functions to get the colors of the admin ...
4
votes
1answer
185 views

Splitting an Evolving Site into Multiple Sites, or Maintaining as One Site?

To Separate or Not to Separate...That is the Question? I currently have what I believe is a mistake in my site architecture. I initially built my two lines of business into the same site. ...
4
votes
2answers
81 views

Password-protect a custom rss feed

I've created a custom post type and would like to send those posts to FB Instant Articles and Apple News via a RSS feed. I've created a custom RSS feed and need to know what's the best way to make ...
4
votes
1answer
596 views

Setting multiple default background images?

The following code lets me set a default background image. Is it possible to set multiple custom backgrounds? add_theme_support( 'custom-background', array( 'default-image' => ...
4
votes
1answer
86 views

Hide Twenty Eleven Theme From Themes Page

Is there a way to hide the Twenty Eleven theme from the "Themes" page in wordpress? I have 10 themes for clients to choose from and i don't want them to be able to see the Twenty Eleven theme or be ...
4
votes
2answers
5k views

How to add plugins to wordpress theme?

I planned to develop wordpress themes commercially.. I just want to know the easy method to add plugins to my wordpress theme which I am developing.. can any one suggest me the simple steps.. and I ...
4
votes
1answer
235 views

Best practice (forward compatibility) for theme options

So here is what I'm wondering... You all know about Option-tree and similar frameworks that theme authors are using for their theme option pages. You also all know that since 3.4 WordPress introduced ...
4
votes
2answers
10k views

All shortcodes not working on custom theme

I'm using a custom theme not developed by myself that seems to have disabled/ or doesn't have the function for any and all Shortodes, whether its a WordPress shortcode or a plugin shortcode. I mostly ...
3
votes
4answers
16k 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 ...
3
votes
2answers
181 views

Ship plugin with a custom theme

I need to add a plugin to a theme and enable it automatically once the theme is activated. Would also like to change its settings if possible. This is the plugin I am trying to include: https://...
3
votes
2answers
176 views

Detection of theme being used

OK, this may be a dumb question. Is it possible, using PHP, to detect which theme has been set for use by Wordpress ? If so, how's it done ? Thanks.
3
votes
4answers
880 views

Using a Theme inside a Plugin directory

I am building a mobile friendly plugin and put the theme directory inside the plugin directory. If it's a mobile browser, how can I redirect to the theme in the plugin directory? /wp-content/...
3
votes
1answer
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 ...
3
votes
3answers
102 views

reason of splitting theme files to multiple files

I can create my theme without splitting it into separate files. Why do theme developers split WordPress theme into a few single files like header.php sidebar.php and etc?
3
votes
1answer
88 views

How to display date such “x ago”

I want display date based on how much time has passed since, i. e. Posted 12 minutes ago
3
votes
2answers
1k 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 ...
3
votes
5answers
557 views

Get URL of a specific file

I have a file that can either be included in a plugin, or in a theme. What's the best way to get the URL of the file's folder (from within the file)? Edit: I'm now using this for now home_url( '/' ....
3
votes
3answers
1k views

Using chunk theme from wordpress.com on my own host

I am new to wordpress so please excuse this question if it is obvious, but I was not able to find a good answer here or via the more general internet. I want to use the Chunk theme from wordpress.com ...
3
votes
1answer
1k views

What is the best book to learn how to make themes for wordpress?

Do you any good book or video tutorials that easily explain how can I make my own theme for Wordpress? and how to change the structure of the content? Cheers.
3
votes
1answer
3k views

How to get Ajax into a theme - without writing a plugin?

Okay, I'm starting out with some AJAX stuff in a wordpress theme 1) I'm building a child theme OFF the thematic framework 2) My child theme has a header.php, index.php, functions.php and style.css (...
3
votes
1answer
176 views

How to set a unique WordPress theme for different pages?

I am new to wordpress. I am trying to build a custon website based on it. I know some php and quite good html \ css \ js. I wanted to know if it's possible to set a uinque theme for different pages? ...
3
votes
3answers
1k views

How to change the language for the front-end only?

I have installed a wordpress theme, i can see the .mo and .po /public_html/wp-content/themes/themename/lang, the language I want to use is available. Could you please advise on how to use a specific ...
3
votes
2answers
9k views

How to set thumbnail image for a (child) theme

I've created a basic child image for twentytwelve, and it works as expected. The only issue is that it does not have a thumbnail image in the themes page: How do I set a thumbnail image for my ...
3
votes
1answer
217 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 ...
3
votes
2answers
5k views

How to Use WordPress as Static CMS Without Blog Posts

I am very new to wordpress. I want to edit a wordpress theme and remove the blogpost area from it so it can be converted into a website. I also want to make some other changes. How I am trying to do ...
3
votes
2answers
116 views

How to automatically highlight syntax of code in a post?

I post my codes from different programing languages. Now, I want to highlight syntax of codes with different colors. But, doing it manually is time consuming. Is there any plugin or method which could ...
3
votes
2answers
10k views

Multiple level category drop-down

I'm using WordPress as a CMS and would like to have categories selectable from multiple selections i.e <option>. As a usage example, The first dropdown would contain parent categories. Then ...
3
votes
4answers
2k views

How can I check for malware in a Theme? [closed]

There are so many free, freemium and premium Themes out there. How can I be sure that a Theme I download doesn't have malware in the code? Is there an (relatively) easy way to check for malicious code ...
3
votes
3answers
461 views

Why is there no global function in wordpress to return the output of any function call?

We have template tags and some functions that start with get. Sometimes it would be just nice in themes to do like: $title = the_title(); to use the html later on. This is just a simplified example,...
3
votes
1answer
74 views

2 seperate installation 1 theme same server

i got 2 separate installation on the same folder each in their own sub folder - they use the same theme which i copied twice. Every time i edit a file i need to do it twice and its a real hassle... ...
3
votes
2answers
702 views

How to set two different themes on one WordPress? (Desktop vs. Mobile)

I created two WordPress themes. First for the Desktop and second for tablet/mobile. I want to set on one URL. When the website opens, the theme should change automatically based on resolution.
3
votes
1answer
662 views

Should I use set_transient or update_option?

I want to store some Twitter API data in WordPress. After every hour, I want to fetch new data from Twitter, and update only if the data is successfully retrieved from API (sometimes the API gives ...
3
votes
1answer
1k views

How can I add a set featured image function to a theme that doesn't already have it built in?

I'm a relative newbie to WP and PHP in general, but now that I'm into it, I've caught the "WP fever" and have ditched asp.net. I finally found a quality theme that I like and I'm considering buying ...
3
votes
2answers
3k views

How do you change the theme location?

To change the upload directory I have to do this: define ( "upload", "<new upload location>" ); How can you change the themes location? I like to create a folder themes in the root directory.
3
votes
1answer
5k views

How to solve a conflict between a plugin and a theme?

I'm using Photospace as a gallery slider within my hatch pro wp theme (you can check here). The default transition effect between slides is a crossover effect (like this example), but the effect in ...
3
votes
1answer
566 views

WP Config for FTP credentials

Is there a config in WP that allows you to store your FTP credentials? I'm using the Linux webserver at work to develop and it's really annoying to have to but the credentials in every time I add/...
3
votes
3answers
3k views

Theme file for all pages that are a child of a specific page

Is it possible within the current theme file naming hierarchy to define a template for for all pages that are a child of a specific page? For example, in this navigation: About Us Contact Who We ...