To create a new block region just need to following things..
1. In .info file we need to add block name like..
regions[sidebar_second] = Sidebar Second
2. Then goto template page and add the below code wherever you want add the block of region.
<div id="right1" class="clearfix">
<?php print render($page['sidebar_second']); ?>
</div>
Note: need to give div id unique
Wednesday, March 6, 2013
Monday, February 25, 2013
how to change title in mail for wordpress website from wordpress to customized text?
Todo this just goto page..
/wp-includes/pluggable.php
Search $from_name = 'WordPress'; and Replace Wordpress word with
$from_name = 'your own name';
/wp-includes/pluggable.php
Search $from_name = 'WordPress'; and Replace Wordpress word with
$from_name = 'your own name';
Tuesday, February 5, 2013
How to display total blog posts in a static page?
To display total blog posts in a static page which are created by the developer, need to follow below steps..
1. Create a page with the name posts.php in theme folder which the site using.
2. Copy paste below code
<?php
/**
* Template Name: Posts Page
* Description: A Page Template that adds a sidebar to pages
*
* @package WordPress
* @subpackage Twenty_Eleven
1. Create a page with the name posts.php in theme folder which the site using.
2. Copy paste below code
<?php
/**
* Template Name: Posts Page
* Description: A Page Template that adds a sidebar to pages
*
* @package WordPress
* @subpackage Twenty_Eleven
Thursday, January 31, 2013
How to Add CKEditor in Drupal
Following Steps need to follow.
First Download 3 file.
First Download 3 file.
- Download CKEditor module(ex.ckeditor 7.x-1.2). To download click here.
- Download CKEditor Software(ex.CKEditor 3.6.6) .To download click here.
- Download imce Software(ex.imce-7.x-1.4.tar.gz) .To download click here
- Unzip all the zip files which are downloaded. After that copy the CKEditor software folder.
- Inside the CKEDitor module folder there is folder name CKEditor, paste the software folder in that folder.
- Now copy the CKEditor module folder and IMCE folder into the drupal project folder in sites/all/module.
How to remove Read more and display Content on front page
Just goto Configuration -> Site Information there we will find an option like "Default front page". There you can give your node id of the page what you are created.
For Ex.
I have created page which i want to make as front page like "Wel Come". When we are created the page it will take a node id a default value like "5".
So we need to add this value in Default Front Page as "node/5"
For Ex.
I have created page which i want to make as front page like "Wel Come". When we are created the page it will take a node id a default value like "5".
So we need to add this value in Default Front Page as "node/5"
Tuesday, January 22, 2013
How to create a plugin in wordpress?
For creating a new plugin in wordpress need to follow below steps:
1. Create a php file in plugins folder of your wordpress project.
For example : mytestplugin.php
2. Add the below code in that:
<?php
/*
Plugin Name: My Test Plugin
Plugin URI: http://google.com
Description: This is a my first plugin
Version: 1.0
Author: Kiran
Author URI: http://gmail.com/
*/
?>
Plugin Name: name of the plugin which display at admin side of wordpress in plugins menu.
Plugin URL: describes the link of your plugin site.
Description: description of the plugin.
Version: version of the plugin
Author: Name of the author who creates the plugin
Authod URL: url of the author's site.
1. Create a php file in plugins folder of your wordpress project.
For example : mytestplugin.php
2. Add the below code in that:
<?php
/*
Plugin Name: My Test Plugin
Plugin URI: http://google.com
Description: This is a my first plugin
Version: 1.0
Author: Kiran
Author URI: http://gmail.com/
*/
?>
Plugin Name: name of the plugin which display at admin side of wordpress in plugins menu.
Plugin URL: describes the link of your plugin site.
Description: description of the plugin.
Version: version of the plugin
Author: Name of the author who creates the plugin
Authod URL: url of the author's site.
Thursday, October 11, 2012
How to do Events as calendar in post/page wordpress?
To make an event Need to follow below steps..
1. Install plugin from http://www.harriswebsolutions.co.uk/event-organiser/.
2. To display events as a calendar use the below short code..
[eo_fullcalendar]
1. Install plugin from http://www.harriswebsolutions.co.uk/event-organiser/.
2. To display events as a calendar use the below short code..
[eo_fullcalendar]
Subscribe to:
Posts (Atom)