Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.
Monday 13 April 2015
Friday 3 April 2015
How to add static block call in phtml,xml and cms page in magento
How to add static block call in phtml , xml and cms page in magento
In your Phtml File in magento
<? php echo $this->getLayout ( ) ->createBlock ( 'cms/block') ->setBlockId ( 'set your block id') ->toHtml ( ) ? >
<? php echo $this->getLayout ( ) ->createBlock ( 'cms/block') ->setBlockId ( 'block-header-top1') ->toHtml ( ) ? >
In your xml file
<reference name="content">
<block type="cms/block" name="home-page-block">
<action method="setBlockId ">add your block id
</block >
</reference >
In Your cms page
{{block type="cms/block" block_id="add your block id "}}
I hope this blog help you to add static block in your magento any suggetion for me please comment it.
Wednesday 1 April 2015
How to add custom sidebar in wordpress
How to add custom sidebar in wordpress
Hello
Here Example of add custom sidebar in wordpress
register_sidebar( array(
'name ' => __( 'Header Sidebar', 'theme-slug' ) ,
'id ' => 'home-header-1',
'description ' => __( 'Widgets in this area will be shown on all posts and pages.', 'theme-slug' ) ,
'before_title' => '
',
'after_title' => '
) );
}
add_action( 'widgets_init', 'theme_slug_widgets_init' ) ;
before_title and after title : here name display h1 tag in you can change in tag . or html of before title and after title.
dynamic_sidebar( 'home-header-1' ) ;
How To remove default jquery in wordpress
How To remove default jquery in wordpress
Hello
If you want to remove the WordPress default jquery in wordpress
How to add Jquery in footer in wordpress
How to add Jquery in footer in wordpress
Hello
How To add jquery and css in child theme or theme Wordpress
How To add jquery and css in child theme or theme Wordpress
Hello
Here We learn that how to add js and css in your theme or child theme.
When you want to add jquery and css using code then fist open your functions.php file
Here add this code for add jquery.
Wednesday 25 March 2015
Design anchor tag in visited link, select link, unvisited link and active link and link open in new tab
hello
you want to open in new tab then use target="_blank" propertity in anchor tab
example
http://myphpinformation.blogspot.in
anchor tag css
/* unvisited link */
a:link {
color: green;
}
/* visited link */
a:visited {
color: #776655;
}
/* mouse over link */
a:hover {
color: red;
}
/* selected link */
a:active {
color: yellow;
}
anchor tag css add in style see it.
if you want to change text-decoration in anchot tag.
text-decoration propertity by default in text-decoration: underline; if you want to remove
unader line text-decoration: none; is your css.
a:link {
color: green;
text-decoration: none;
}
if you want line in over the link then you can set as
below
a:link {
color: green;
text-decoration: overline;
}
if you want to create link line-through then change
a:link {
color: green;
text-decoration: line-through;
}
you can also change anchor tag background color;
a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;
}
you can also change it font family
a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;
font-family: Verdana;
}
Subscribe to:
Posts (Atom)