Tag > functions.php

06 Aug
2013

wordpress icon grafxflow

Navigation item stays highlighted when tag or category selected

I recently had a problem relating to the main menu with a WordPress site which used the e-shop plugin. The main navigation menu had three buttons – ‘Contact Us’, ‘Useful Links’ and ‘Shop’. I wanted the ‘Shop’ button to stay highlighted even when the user selected a Shop Category or Shop Tag.

Here is the scenario:

I have a shop with sells several cloths items. The categories would be ‘t-shirts‘ and ‘shorts‘. The tags would be the ‘brands‘, ‘colours‘ and ‘sizes‘. When choosing the ‘Shop’ button it takes me to a landing page which shows the top 10 items. Now when choosing a Shop Category it takes me to a page listing all the items for that category. If I then choose a Shop Tag it shows a page listing all the products that use that tag. So how did I make the Shop button stay highlighted all the time?

Continue reading…

Posted in: <WordPress>

27 Mar
2013

wordpress icon grafxflow

Remove the ‘Private:’ title for private posts

If you are creating private pages or posts for certain members to view, you will notice by default WordPress adds ‘Private:‘ to the title. So the title ‘Secret Page/Post‘ will actually be ‘Private: Secret Page/Post‘. This is not necessarily what you want the user to see.

Continue reading…

Posted in: <WordPress>

22 Mar
2013

wordpress icon grafxflow

Replace WordPress@ as sender on emails

You will notice that when you activate the register/login option in WordPress that all the emails that it generates, such as Forgotten Password, Register have the following email address WordPress@your_website.com as the sender. Not the best of ideas especially if you have a shop to run. So here is the solution without using a plugin.

Continue reading…

Posted in: <WordPress>

18 Mar
2013

wordpress icon grafxflow

Add widget to header in WordPress

You may want to add a widget to your WordPress theme header (or any page template) but have noticed that it doesn’t appear in admin (Appearance->Widgets). Luckily it’s possible with the following PHP code which makes it appear in admin and on your website page. The code is also based on a custom/from scratch theme.

Continue reading…

Posted in: <WordPress>

smart search