Wordpress

Dynamic fields with Contact Form 7 – WordPress plugin

1. Be sure to have jQuery script added to your theme or add it 2. Create a form with Contact Form 7 Example: 3. Create a script to hide fields Add this to some js file in your template (custom.js)    

Read More»

Moving WordPress

Moving a WordPress Site from a Subdirectory to the Root This is a straightforward method that will allow you to keep your WordPress install in a subdirectory and use your root domain’s URL. 1. Back Up Your Site It’s a good idea to have a backup, just in case anything goes wrong. This includes your [...]

Read More»

Create sortable portfolio in WordPress

1. Download filterable.js and upload it to your_theme/js directory. Download filterable.js 2. Open your theme’s function.php and add this code 3. Create new template file (for example: portfolio-tempalte.php) with this code and upload it to your theme directory 4. Optional add this css to style.css or style it by yourself   Code from Tutplus

Read More»

Add different class to every Nth post in WordPress

Code from seanjacob

Read More»

Create one page WordPress template with anchor links in menu

Create onepage.php template with this code: Add this to heade.php between <nav> and </nav> (or wherever you want to display the menu with anchor links.) Create page (for example: Home) and attach Onepage template to it. Make that page as Default static front page (Settings -> Reading):   Code from WordPress Community forum users wearitwell [...]

Read More»

Widgetized Footer to WordPress Theme

The first step is to register the “sidebars.” To do this, simply replace the current contents of the functions.php file with the following: <?php if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Sidebar’, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’, )); if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Footer’, ‘before_widget’ => [...]

Read More»

Flash in wordpress header

http://forum.bytesforall.com/showthread.php?t=5953 HTML Code: <div id=”header-container”> <object width=”550″ height=”101″> <param name=”movie” value=”http://www.daisytwist.com/wp-content/themes/atahualpa/images/header.swf”> <param name=”wmode” value=”transparent”> <embed src=”http://www.daisytwist.com/wp-content/themes/atahualpa/images/header.swf” width=”550″ height=”101″ wmode=”transparent”> </embed> </object></div> Then you add this CSS #header-container {position: relative; z-index: 0;}

Read More»

Different category with different style

Giving different styles to different WordPress categories WordPress allows you to give different styles to different categories in a range of ways. You can style a category page: this means that every category page can have its own unique style. For example, let’s say you have a site about vegetables, where every vegetable is a [...]

Read More»
shared on wplocker.com