WordPress : How to remove page title only from a single page

Do this if you don’t want to show the page title on top of a page in wordpress.

Method 1 : (will not work if you save the post in Visual editor mode)

Add this style below the content in HTML editor.

<style>.entry-title {display:none;}</style>

Make sure the editor mode is HTML, NOT Visual

Method 2 (editing the CSS style sheet)

First you need to get the ID of your page.

How to find the ID of the page

  1. Preview or publish your page.
  2. View html source of your page (Ctrl+U in Google Chrome and Mozilla Firefox, Top menu->View->Source in Internet Explorer )
  3. Search for body tag. The page ID will be shown in the body tag.
    In this case the page ID is 40
  4. Now go to Appearance->Editor in WordPress admin
  5. Edit style.css
  6. Add this style
    #post-40 .entry-title
    {
       display:none;
    }
    

    Change 40 to your page ID.

  7. Save the file.
  8. Now check the page. You will not see the title of the page.
  9. For hiding page title in multiple pages add style like this
    #post-40 .entry-title,
    #post-41 .entry-title,
    #post-42 .entry-title
    {
       display:none;
    }
    

    In this case page title will not be shown in pages which has ID 40,41,42

Posted in CSS, Web development, Wordpress | Tagged , , | 15 Comments

Bhuvan – Indian version of Google Earth

Bhuvan

ISRO today launched a service called Bhuvan which is similar but more superior than Google Earth.

The new site is released a beta version. The address of the site is http://bhuvan.nrsc.gov.in/

From the site
A Geoportal of Indian Space Research Organisation showcasing Indian Imaging Capabilities in Multi-sensor, Multi-platform and Multi-temporal domain. The portal gives a gateway to explore and discover virtual earth in 3D space with specific emphasis on Indian region.

The new mapping service Bhuvan is a Sanskrit word of earth. It will allow users to have a closer look at any part of the subcontinent. Bhuvan will provide the pictures of objects as small as a car on the road to build three-dimensional map of the world via ISRO’s seven remote sensing satellites.

For accessing Bhuvan you have to first Register in the site. After that you have to login and download a browser plugin. The size of the plugin will be about 10.76MB

Posted in Technology | 3 Comments

Disable right click menu in Flash (swf files)

There are times when you have to disable the default right click menu on flash files on your webpages.

Uza has a suggested a method to completely disable the flash right menu.
Check the article link at his website http://www.uza.lt/blog/2007/08/solved-right-click-in-as3
and the Demo here http://www.uza.lt/rightclick/

You can also download the project files from the Google code
Project website:
http://code.google.com/p/custom-context-menu/

Posted in Flash/Flex | Tagged , , , , , | 4 Comments

Change login link to logout link.

There are times when you have to change the login link in your webpage to a logout link when a user successfully logged in.

Here is a simple way to do it in PHP

Suppose your menu is

Link 1
Login
Link 2

the corresponding HTML code will look like

<a href='somepage.php'>Link 1</a>
<a href='login.php'>Login</a>
<a href='some_other_link.php'>Link 2</a>

After successful login most probably you will set a session. Say the name of the session variable is username
Then the code for the menu will look like

<a href='somepage.php'>Link 1</a>
<?php
if(isset($_SESSION['username']) && $_SESSION['username']!="")
{
      echo("<a href='logout.php'>Logout</a> ");
      echo($_SESSION['username']);// displays username
}
else
{
      echo("<a href='login.php'>Login</a> ");
}
?>
<a href='some_other_link.php'>Link 2</a>

and also make sure to add

<?php
    session_start();
?>

on top of your page.

Posted in PHP | 8 Comments

Add custom picture and other details in System Properties tab

This article applies only to Windows operating systems.
If you dont know how to take System Properties tab, do this, Right click the My Computer icon on the desktop, select Properties. By default the General tab will be shown. This is the System Properties.

System Properties can also be accessed from the Control Panel.

Custom image in windows system properties

Continue reading

Posted in Windows | 17 Comments