Showing posts with label web developement. Show all posts
Showing posts with label web developement. Show all posts

Wordpress Customization

Wednesday, March 13, 2013








WordPress is a Complete Open source content management System primarily used for publishing platforms and blogs.This page shows you the WP Stats of WordPress usage.
When we want to create a professional WordPress websites with lots of Authors on it.We definitely want a professional look of it but wordpress logos in header, footer and on login pages will not give its professional shape.Anyone don,t want to have branding of any other company on its website whether it is open source or it.Today I will show you how we can Remove WordPress Branding Easily but Before that Remove thatWordPress is Open Source and Morally It is not a good Idea.
My priority is kept it is simple and better as much as i can.

Requirements;

  • Access to file manager
  • Text Editor
  • Time
Lets start;

Login Logo;

First I will show you how to Replace the logo at your login page.For this we are going to use a plugin which is Login Logo .
 Just Download and install plugin.This plugin allows you to customize the logo on the WordPress login screen. There is zero configuration. You just drop the logo file into your wp-content directory, named "login-logo.png" and this plugin takes over.Result is Shown Below

Footer Text ;

 For Footer Text and Link we have to do some PHP editing;
Edit this file Located in
    "public_html/YOURWEBSITE.com/wp-admin/admin-footer.php"
Replace the Coding with your Coding as shown

   See the Footer result below

Welcome Message;

 When a new Author other register to your website he see the welcome message from About WordPress now we will see how to remove it.
To do this we just have to put an additional PHP function in wordpress
goto /wp-admin/includes and edit dashboard.php
add_action('wp_dashboard_setup', 'hide_wp_welcome_panel' );

function hide_wp_welcome_panel()
{
if ( current_user_can( 'edit_theme_options' ) )
$ah_clean_up_option = update_user_meta( get_current_user_id(), 'show_welcome_panel', false );
}
Add this code before function   wp_welcome_panel() {  as shown
After saving you will get the desired result as shown below;


 Wordpress feed from dashboard;

 for its removal again edit dashboard.php in wp-admin/includes and remove the following code nearly at line number 92
// Primary feed (Dev Blog) Widget
if ( !isset( $widget_options['dashboard_primary'] ) ) {
$update = true;
$widget_options['dashboard_primary'] = array(
'link' => apply_filters( 'dashboard_primary_link', __( 'http://wordpress.org/news/' ) ),
'url' => apply_filters( 'dashboard_primary_feed', __( 'http://wordpress.org/news/feed/' ) ),
'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ),
'items' => 2,
'show_summary' => 1,
'show_author' => 0,
'show_date' => 1,
);
}
wp_add_dashboard_widget( 'dashboard_primary', $widget_options['dashboard_primary']['title'], 'wp_dashboard_primary', 'wp_dashboard_primary_control' );

// Secondary Feed (Planet) Widget
if ( !isset( $widget_options['dashboard_secondary'] ) ) {
$update = true;
$widget_options['dashboard_secondary'] = array(
'link' => apply_filters( 'dashboard_secondary_link', __( 'http://planet.wordpress.org/' ) ),
'url' => apply_filters( 'dashboard_secondary_feed', __( 'http://planet.wordpress.org/feed/' ) ),
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
'items' => 5,
'show_summary' => 0,
'show_author' => 0,
'show_date' => 0,
);
}
wp_add_dashboard_widget( 'dashboard_secondary', $widget_options['dashboard_secondary']['title'], 'wp_dashboard_secondary', 'wp_dashboard_secondary_control' );
and then move to line 70 and remove following code:

// WP Plugins Widget
if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) )
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); 
see the result below:



Removal From title;

Now i will tell you that how you will remove the Wordpress from the title of admin page; first see the result and understand what i am talking about
to do this go to wp-admin folder and edit admin-header file and replace wordpress on line 33 by your custom title as shown below;

WP Logo from header

 Put this in your functions.php of your theme
function remove_wp_logo() {  
    global $wp_admin_bar;  
    $wp_admin_bar->remove_menu('wp-logo');  
}  
add_action( 'wp_before_admin_bar_render', 'remove_wp_logo' ); 


Copy right ::: http://it.infooid.com/

HTML5 Paragraph, Anchor tag

Sunday, March 3, 2013







Anchor tag:
                      This is use to create links between two pages Suppose you have to redirect your visitor to one Facebook, Google , yahoo or anywhere else , you can redirect to your own developed page.

Syntax :

<a href="Link provided here" > Redicetion discription </a>


Example 

<A href="https://www.google.com"> Google </a>

Demo :

Google





 Paragraph tag:


Pretty Simple and as like olde version of HTML

<hi>Text </hi>

Where i =1,2,3,4,5,6

Means that

<h1> Text </h1>

<h2> Text </h2>

<h3> Text </h3>

<h4> Text </h4>

<h5> Text </h5>

<h6> Text </h6>


Demo

Text

Text

Text

Text

Text
Text

Removing blogger bar from blog






Removing blogger bar from the top of the blog

it is possible intwo ways

--->  one is that you have your own hosting then it'll be no more on the top of the blog

---> second is that we can hide it by using  CSS properties

First step :

Go to select Template



Second Step : 

Select Edit  HTML

Then Paste this code in Code

#navbar {
height: 0px;
visibility: hidden;
display: none;
} 

That's it ...

Custom word press login

Saturday, March 2, 2013








Here is the word press login page customization tutorial ,

Look's difficult but pretty easy


Just follow these steps and your reciepe is ready

-> go to admin dashboard and open editor from apperance bar



--> Select Theme function or function.php from right bar
          --> Paste this peice of code
 

                 
function custom_loginlogo() {
echo '<style type="text/css">
h1 a {background-image: url(url) !important; }
</style>';
}
add_action('login_head', 'custom_loginlogo');


Attention  be careful and don't make any mistake..! 
Simple and easy ...



How to change the favicon in wordpress








Favicon is the icon that shows in the statring of the tab, Something like this




In this picture you can see the favicon of the word press , you can cahnge it according to your need
and requiremet.

Favicon should be of 

 -> 32 x 32 size
 -> with extension of 32 x 32

You can generate your favicon here

     http://www.favicon.cc/

Now the task is how can we change the favicon 



Step : 1  

go to your admin panel , your access to admin panel will be as 

http://www.yourblog.com/wp-admin


Step : 2

->Select apperance on the dashboard 


-> Then select Editor from it's options 

-> open head.php from the right side

-> Find these lines
Starting

<link rel="icon"
and end at something like this

 href="link/favicon.ico">

overwrite these lines by this

<link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/x-icon"/>



 

Most Reading