|
Prashant asked |
My blog runs on Wordpress. I like to play with my blog template. I am not a tech savvy guy like you but I love to customise my blog and add new features just like this blog. I will like to know how to check if I am logged in or not and show the status in the sidebar like in this blog. My blog is hosted at Blogsome. |
|
Ramnath’s tip |
Hi Prashant and welcome to the WebTips community. You need not be a ‘tech savvy guy’ guy to continue your blogging efforts. But you know some basic things. Ok heres the tip you asked for ..
Login to your blog cpanel and go to Manage and then to Files The file you see (index.html) is the main template and this is where you operate the whole look and feel of your blog. Inside body tag just add this smarty code:
From now on if you are logged in to your blog you will see the ‘logout’ link and vice versa (just like the one at the top nav bar of this site). Save your work and see the result |








