Skip to main content

Posts

Showing posts with the label wordpress

Straight-forward Pure CSS Social Icons

This is a chunk of code I use on a lot of sites.  It uses Font Awesome to supply the fonts, but everything else is handled via CSS. Font Awesome To start, you'll need a Font Awesome account / link to use to import your font files (which will be used to show the social network icons). They will provide you with a script link you can put into your header.php, load into your functions.php and/or download locally and link locally...really, it's up to you how you load the script. The HTML code is just a simple list: <ul class="social-media-icons"> <li><a class="facebookBtn smGlobalBtn" href="https://www.facebook.com/yoursitehere" target="_blank"></a></li> <li><a class="linkedinBtn smGlobalBtn" href="https://www.linkedin.com/in/yoursitehere" target="_blank"></a></li> <li><a class="twitterBtn smGlobalBtn" href="https://twit...

How To Set Default Attachment Display Settings In WordPress

This is a pretty quick fix. Add this to your functions.php for your theme and then you can set the default for the image attachment settings function mytheme_setup() { // Set default values for the upload media box update_option('image_default_align', 'center' ); update_option('image_default_link_type', 'media' ); update_option('image_default_size', 'large' ); } add_action('after_setup_theme', 'mytheme_setup'); Obviously changing the values to what you want as the default.

Category Sort Plugin For Wordpress

I was recently using a theme that had a secondary posts section and I wanted to organize the categories of posts independently of each other. Thankfully, I stumbled across this plugin for Wordpress that is just an all-around great plugin:   Category Order and Taxonomy Terms Order . After installation, it creates a quick little Ajax driven drag and drop category sorter under your posts menu.

Wordpress Yoast SEO Plugin and Duplicate Titles Fix

If you're using the Yoast SEO Wordpress plugin and experiencing an issue with your site's title appearing twice (ie.  2Bluesolutions Tech Blog - What Is Kickstarter - 2Bluesolutions Tech Blog), then there is a simple fix that seems to work for many people. You need to edit the header.php file for your Wordpress theme. My particular Wordpress theme had this for the title meta tag: <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title> You need to change it to something much more simplistic.  What you should replace it with is this: <title><?php wp_title(''); ?></title> That seems to fix the issue, at least for my sites.

Wordpress - Startup Tips

I've created a few Wordpress sites now that I know there are a few tips to do right off the bat that will save you grief later. First tip: Time - I always seem to forget to set the time zone settings found under Settings - General .  Without this properly set, you get the annoyance of having your post times be set to UTC-0 which is fine if you live on London. Second tip: Remote Publishing - Within Settings - Writing , be sure to check the box for XML-RPC so that you can use Wordpress apps to post from your mobile device. Third tip: Media Settings - be sure to go into Settings -> Media and change the default sizing for thumbnails, medium, and large images so they better match the dimensions of your site.  I prefer to make large the largest size, medium exactly half and then keep thumbnails the same. Fouth Tip: Permalinks - Under Settings - Permalinks you'll find the settings for how your URL will be displayed.  The default sett...