Add HTML [br] break tag to a Widget Title in WordPress
By default you can’t add HTML to a Widget Title in WordPress, such as a break tag <br>, you can get around this by adding a filter to allow shortcode to the title area…. In functions.php file in your child theme add: add_filter(‘widget_title’, ‘do_shortcode’); add_shortcode(‘br’, ‘ng_shortcode_breaktag’); function ng_shortcode_break( $attr ){ return ‘<br />’; } Now…
Read MoreHow to Create Custom WordPress Template Posts, Pages, Headers, Footers and Sidebars
How to create new WordPress templates for your theme including posts, pages, headers, footers and sidebars. To change the WordPress home page edit the index.php in the main theme if using a child theme, just copy and then edit the file in your child theme folder alternatively you can create/edit front-page.php – this will take priority over the index.php To make a…
Read MoreMaking Full Width Headers and Footers in WordPress TwentyTwelve Theme
How to create a full width header and footer in WordPress’s responsive Twenty Twelve theme. Example Site. Create a Child Theme First up you should really create and work from a Child Theme Make Header and Footer Copies to Child Theme Copy your header.php and footer.php files from twentytwelve to your twentytwelvechild theme folder. Your…
Read MoreFind and replace text across a whole WordPress web site using phpMyAdmin
You can do a find and replace for text or html code on a post or page across a whole WordPress site by using the mysql database that the site stores all its data in. First up you need to connect to the database, if you have a cPanel/Plesk style hosting typically you will have…
Read MoreResponsively Removing Width and Height Attributes on Images and wp-caption on WordPress
If you are looking to go responsive for images on your site and want a theme that responds to various devices such as tablets and mobiles there are a couple of issues to sort out with existing hard coded images that have hard coded inline style width and height attributes. In WordPress not only do you…
Read MoreRedirect HTTP to HTTPS on Tomcat Server Install
You’ve bought your SSL secure certificate and successfully installed on Tomcat with the keytool but how do your redirect the entire site to go HTTPS and redirect any HTTP connection straight over to HTTPS. You need to edit the 2 Tomcat configuration files; server.xml and web.xml and then when edited restart the tomcat service. Open…
Read MoreMaking RSS Feed Links no-follow in WordPress Sidebar
If you use the RSS widget in WordPress to bring in a Feed with multiple external links that go to external content and that update in the sidebar. You may notice that all these links have the attribute set to ‘follow‘ by default. This can be detrimental to your page’s SEO status in terms of…
Read MoreHow to see all records in a DNS domain from a nameserver using dig and a zone transfer
If a nameserver has not been secured to restrict zone transfers you can request one to see all the records in a particular domain zone by using Dig – So to find a nameserver for a particular domain: dig domain.com ns Then to find if you can get all the records use the namesever of…
Read MoreHow to change the header size in TwentyEleven and TwentyTen
To change the header size in width or height or both of the TwentyEleven or TwentyTen theme in WordPress you need to add a snippet of code to the ‘functions.php’ file in your parent theme or child theme – the preference is to make a child theme and create/change the functions.php file in there. The reason for this is…
Read MoreCan’t download the additional components needed to install Mac OS X
An installation error occurs sometimes for when upgrading from OS X Snow Leopard to OS X Lion “Can’t download the additional components needed to install Mac OS X” – Check your network configuration as the install needs to pull down software over the internet. But the network configuration is OK.! Check that Software Update can…
Read More