If you have breadcrumbs enabled in your StudioPress Genesis theme, you may want to move or reposition the WordPress breadcrumbs. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to move the breadcrumbs to another location.
[Read more…] about How to move the WordPress breadcrumbs in StudioPress Genesis
Templates
How to hide template files from WordPress Appearance File Editor
Often when developing a WordPress theme, you will add template files to allow certain functionality on the site. If these files are listed in the themes main folder, wp-content/themes/theme-name/template-file.php for example, they will show in the WordPress File Editor in the WordPress Admin Panel under Appearance > Editor. Also, if these files are listed inside a folder at the theme directory file level, wp-content/themes/theme-name/templates/template-file.php for example, they will show in the Editor as well. This means that these template files will be editable through the WordPress Admin Panel and can be easily changed there without having to use a Host File Manager or by using FTP.
As you may know, if you make a small mistake in a php file, even something as small as an extra semicolon, it can possibly break the entire WordPress site and display a php error code when visitors try to visit the site instead of the regular site itself. It can also break the site to where you cannot even access the WordPress Admin Panel to fix the problem. If there will be people managing the site that are not experienced with PHP coding, you may not want to have certain php files accessible through the WordPress File Appearance Editor. In order to hide certain php files from the WordPress Appearance File Editor, you will need to put those files at least 2 folders deep from the theme directory file level. An example of this would be: wp-content/themes/theme-name/templates/hidden/template-file.php.
I hope this WordPress Tip helps you with securing certain template files from easy editing. Enjoy!
How to display the number of your Facebook fans
Everybody knows that Facebook is a very valuable tool for any blogger. This WordPress tip will show you how to display the number of your Facebook fans count in your WordPress theme template file.
[Read more…] about How to display the number of your Facebook fans
How to show your most recent Google+ update
Google+ is Google’s Social Networking Platform. Today’s Snack will show you how to display your most recent Google Plus update on your WordPress site.
[Read more…] about How to show your most recent Google+ update
How to style custom widget areas using CSS
Sometimes your WordPress theme just doesn’t have enough widget areas and you may need to add some additional custom widget areas to your WordPress theme and then style them using your stylesheet. This WordPress tip will show you how to style your newly added custom widget areas using CSS.
[Read more…] about How to style custom widget areas using CSS
How to use shortcodes in your WordPress theme template files
Sometimes, while developing or customizing a WordPress theme or template files, it can be very useful to be able to execute a shortcode inside a template page instead of only within your WordPress Post or Page content. Just add this code below anywhere in your theme’s template pages to execute your shortcode using the do_shortcode() WordPress function:
[Read more…] about How to use shortcodes in your WordPress theme template files
How to change the WordPress breadcrumbs Home link in StudioPress Genesis
If you have breadcrumbs enabled in your StudioPress Genesis theme, you may want to change the WordPress breadcrumbs Home link. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to change the breadcrumbs home link.
[Read more…] about How to change the WordPress breadcrumbs Home link in StudioPress Genesis
How to add custom widget areas to StudioPress Genesis Framework themes
Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to add custom widget areas to your StudioPress Genesis Framework theme.
[Read more…] about How to add custom widget areas to StudioPress Genesis Framework themes