CSS (Cascading Style Sheet)
the different between id and class for styling using css is another easy part.
lets take a look....
<style>
#idclass {
color: red;
}
.normal_class{
color: blue;
}
</style>
<font id="idclass">This is styling using id</font>
<font class="normal_class">This is styling using class</font>
see? actually, its just the same. the different is just using dot "." for class or just use hash "#" for id.
Result:
This is styling using id
This is styling using class
Tuesday, 30 October 2012
Wordpress meta tag
wordpress meta tag can be the most useful features when you create an application.
this is to add user meta key:
add_user_meta($user->ID, 'metakey1', 'value1');
add_post_meta($user->ID, 'metakey2' , 'value2');
this is to get the key back:
get_user_meta($user->ID, 'metakey1', true);
get_post_meta($user->ID, 'metakey2', true);
its just a simple function but can be very useful when you need it :-)
this is to add user meta key:
add_user_meta($user->ID, 'metakey1', 'value1');
add_post_meta($user->ID, 'metakey2' , 'value2');
this is to get the key back:
get_user_meta($user->ID, 'metakey1', true);
get_post_meta($user->ID, 'metakey2', true);
its just a simple function but can be very useful when you need it :-)
Background color inside div
background color inside dive is easy.... this is it:
<style>
.test {
background-color:#dedede;
color:#000000;
width:300px;
height: 200px;
}
</style>
<div class="test">put content here</div>
there you go. the result of this code is just a 300px width box and 200px height with a grey color inside the box.
Result:
<style>
.test {
background-color:#dedede;
color:#000000;
width:300px;
height: 200px;
}
</style>
<div class="test">put content here</div>
there you go. the result of this code is just a 300px width box and 200px height with a grey color inside the box.
Result:
put content here
Monday, 8 October 2012
Create Wordpress Themes From Scratch
Well actually, what you will need is just the knowledge of HTML, CSS and PHP and also some other additional programming language that you now.
ill give you a link which I had learn how to do it in a pretty fast and effective method.
this is the link:
http://themeshaper.com/2009/06/25/wordpress-theme-template-directory-structure-tutorial/
enjoy it!
:)
ill give you a link which I had learn how to do it in a pretty fast and effective method.
this is the link:
http://themeshaper.com/2009/06/25/wordpress-theme-template-directory-structure-tutorial/
enjoy it!
:)
Subscribe to:
Posts (Atom)