Displaying Titles in Multiline in WordPress

When title is written it is usually displayed in single line on front-end until it is too long to display in one line. But if you want to write title in multiline and want to line break the title after a certain word how can you do that. It is pretty simple. Since, we know … Continue reading Displaying Titles in Multiline in WordPress

Advertisements

Different color for each menu item

In a recent project I got a requirement that each menu item should be highlighted in different color when visited. The menu items and their required active colors were: Home - Green Portfolio - Blue Team - Yellow Contact - Red These colors were to be applied only when that page is being visited otherwise … Continue reading Different color for each menu item

Rollover image – Change image on hover/mouse over

Often when designing websites static or dynamic, PHP or ASP.Net, Laravel or WordPress, you have to design in a way if user hovers an image it gets changed and an alternate image is displayed. This can be easily achieved via simple HTML events. Here is the trick: <img src="FIRST IMAGE URL GOES HERE" onmouseover="this.src='SECOND IMAGE … Continue reading Rollover image – Change image on hover/mouse over