It’s okay if I do not write add_action()

It is not always required technically but it is good practice to follow for multiple reasons: Code is more organized by keeping hook-related stuff together The more precise conditions when it runs – the better for performance It is easier to unhook function, that performs multiple add_, then unhook each add_ individually. The order of … Read more

What’s a good way to unenqueue all scripts for a single template page?

I haven’t tried it, but this might do it: global $wp_scripts; if (is_a($wp_scripts, ‘WP_Scripts’)) { $wp_scripts->queue = array(); } Basically just resetting the scripts queue to blank. Should work, I think. You’d want this right at the top of your attachment template, probably. From an optimization perspective, it would be faster to use the is_attachment() … Read more

How to add logo in Thematic

The easiest way is to use a css background image for your logo. Go to line 65 of default.css and change #blog-title { font-family:Arial,sans-serif; font-size:34px; font-weight:bold; line-height:40px; } To This: #blog-title { background: url(images/path_to_your_logo.png) no-repeat; display:block; width: 00px; /* enter logo width */ height: 00px; /* enter logo height */ text-indent: -999em; /* replaces blog … Read more

Problem Installing a Premium Theme– File Permission Issue on a Mac, Local Machine? [closed]

Laxmidi: You wouldn’t FTP to your local installation of WordPress, which is under some directory that you have assigned with MAMP. Wherever that directory lives, you must unpack your theme.zip folder on your desktop, then move the theme into /wordpress/wp-content/themes Once you add move your downloaded theme directory into WordPress, you should see the Theme … Read more

Using WordPress Multisite to manage multiple projects?

Export/Import like you would the data for any other WordPress install: On the development site: Dashboard -> Tools -> Export -> All Content (save file) Package up the Theme files as “theme-name.zip” Make note of any custom settings On the live site: Install the custom Theme `Dashboard -> Tools -> Import -> WordPress data file … Read more

Frameworks for Premium Theming [duplicate]

I would assume that the vast majority of theme developers that sell their work on market places use their own custom frame work. I most certainly do. By using my own frame work, I’m able to know absolutely every little corner of it. And every time I build a new theme, whether for a marketplace … Read more

My new WordPress theme based on the TwentyEleven theme doesn’t display the front page OR the blog page

First of all Create Template and Assign Template to Static page to which u have to display as a home page. Example of template: <?php /** * Template Name: Home Page Template * */ get_header(); ?> <div class=”mid-part cm-fl”> <div id=”container”> <div id=”content” role=”main”> <div class=”left-section”> <?php if ( have_posts() ) while ( have_posts() ) … Read more