Enqueue and Register Internet Explorer CSS Style Sheets in WordPress
To enqueue and register IE stylesheets in WordPress as appose to manually hardcoding them into a header.php file you need to add a function with the style sheet registered and enqueued and then add an action to load the stylesheet, the function also needs to contain the conditions of which IE version is targeted. Add in a…
Read MoreCreate CSS Conditional Stylesheets for Internet Explorer in WordPress
How to Create CSS conditional style sheets for Internet Explorer in WordPress using a child theme or parent theme. Either manually in the header.php file or the preferred WordPress way registered and enqueued as a style via the functions.php way. The Manual Header Way 1) Open the header.php to your parent or child theme 2)…
Read MoreCreate a Widgetized Custom Home Page in Genesis Child Theme WordPress
Creating a customised all widgets / widgetized home page of a Genesis Child Theme. Analysing the Layout The layout above does not lend itself to the default layouts in Genesis, it really needs to be set up with widgetised areas in the WordPress dashboard so a non-technical user can update content. The layout is a…
Read MoreGet PHP and Shortcode to Work in WordPress Widgets
Getting PHP Working in Widgets By default any PHP code won’t execute in WordPress widgets or sidebars, you can probably get by with a plugin but you can also add a function in your themes function.php file to allow PHP to run, what you need to declare is a custom function and filter. //Allow PHP to…
Read MoreRemove HTML Tags and Attributes in WordPress Comments
Bu default WordPress comments have instructions for users on how to use HTML tags and attributes in the actual comments, many users are turned off by this, here is how to remove HTML Tags and Attributes section in the post comments form in WordPress theme. By default this format appears in a few themes including Twenty…
Read MoreRemove Featured Image from Post in Twenty Twelve WordPress Theme
Twenty Twelve WordPress Theme sets a big old ‘Featured Image’ on top of the post content if the featured image is set in a post. To remove the Featured Image from this area but keep it intact for excerpts where it shows elsewhere you need to hack it in CSS or edit the content.php file,…
Read MoreMaking Custom Social Media Images for Share Links in WordPress
There are many Social Media Share link plugins for WordPress that do a great job, but not many that allow you to use a custom image that you may have designed for Facebook, Twitter or Google to use with the sharing link of the post or page, instead you are stuck with the default ones.…
Read MoreUpgrade MySQL Database from 5.5 to 5.6 on macOS 10.8 Mountain Lion
MySQL version 5.6.14 is available for download for OSX, a double click and install is available named Mac OS X ver. 10.7 (x86, 64-bit), DMG Archive. (Don’t worry about the 10.7 naming, Works fine in OSX 10.9 and OSX 10.8) Stop the MySQL Server sudo /usr/local/mysql/support-files/mysql.server stop Download and Launch the DMG There is no upgrade…
Read MoreRemove the WordPress Reset Lost Password Link on Login Page
To remove the reset ‘Lost Your Password‘ link and function on the WordPress login page you need to add a function to your themes functions.php file and add in some CSS. The reason why both are needed as the forgot ‘Lost Your Password‘ link appears in 2 areas as a link in the bottom of the dialog box…
Read MoreSecure the WP Admin Folder in WordPress Using htaccess
To protect your WordPress wp-admin folder from everyone else apart from you, you can add a htaccess file in the /wp-admin folder to allow only access from your IP address and everyone else will be denied and receive a ‘Page Not Found‘ 404 error. This ensures no-one can even get to the login screen which…
Read More