Quantcast
Channel: The Smithy
Browsing all 400 articles
Browse latest View live

Store https passwords with Cygwins Git

The solution is here: http://stackoverflow.com/questions/18683935/store-https-passwords-with-cygwins-git  

View Article


Set up virtual hosts on WAMP

Source: http://codingpad.maryspad.com/2009/11/08/how-to-set-up-virtual-hosts-on-your-localhos/ Goal: You have local copy of www.site and you want to access this through the url www. site.dev Edit your...

View Article


Image may be NSFW.
Clik here to view.

WordPress with GIT, WP-Skeleton and Roots 101

Goals: – Keep a local WordPress  installation under version control (but ignore WordPress core files) – Use WP-Skeleton (wordpress core as submodule in separated folder, content and config files in...

View Article

Image may be NSFW.
Clik here to view.

Roots 101 – Notes, tips, and more

The Theme Wrapper http://roots.io/an-introduction-to-the-roots-theme-wrapper/ The goal of a theme wrapper [3] is to remove any repeated markup from individual templates and put it into a single file....

View Article

Image may be NSFW.
Clik here to view.

The WordPress Template Hierarchy

http://codex.wordpress.org/Template_Hierarchy The General Idea WordPress uses the Query String — information contained within each link on your web site — to decide which template or set of templates...

View Article


Custom Post Types

Apart form the many examples on the internet and elsewhere (for example in WordPress for Web Developers) here are some notes: - When custom posts don’t show up after creating them, it may help to set...

View Article

Image may be NSFW.
Clik here to view.

Roots 101 and Bootstrap: how the head and header (navbar) and content area...

Without any conditionals saying otherwise, every post will be wrapped with standard elements using base.php   HEAD AND BODY CLASS base.phptemplates/head.php lib/scripts.php * Enqueue stylesheets in the...

View Article

Roots 101 and Bootstrap: Full width pages

Note: Maybe not the best way to do this, but it is a way. Note that this will make all pages full width and stretch the columns. For full width navbar:  edit app.less media queries and set max-width...

View Article


WordPress with Isotopes

I finally managed to get my WordPress theme (based on roots101) working with isotopes I mainly followed this post: http://jasonskinner.me/2013/04/creating-a-filterable-wordpress-photo-gallery/ But...

View Article


WP plugin Exploit-scanner – updating the hash file

Just  a reminder. After a wordpress update you should also upload a new hash.php to the exploit-scanner directory on your server They can be found for example here:...

View Article

WordPress Multilingual (WPML) – tips

Just some short notes on using WPML in wordpress: Translating theme strings In the code use this for strings that should be translated (example is for ‘roots’  theme) echo __('Instructors', 'roots')...

View Article

Protected: Optimizing WordPress (Speed and SEO)

This content is password protected. To view it please enter your password below: Password:

View Article

Git snippets and tricks

1. Ignore files that are already tracked Add the files to .gitignore First commit any outstanding code changes, and then, run this command: git rm -r --cached . This removes everything from the index,...

View Article


Export a path from AI to png

To export a path from AI (CS5)  do the following: See also http://creativedroplets.com/transparent-png-with-illustrator/ Select the path(s) you want to export Copy and paste it somewhere if necessary...

View Article

Smoother rendering of fonts in Chrome

If your web font is not rendered nicely on Chrome, try this: SOURCE: http://www.fontspring.com/blog/smoother-rendering-in-chrome-update The Issue: Some websites may experience intermittent spacing...

View Article


Why: custom Taxonomy doesn’t appear in the custom menu? Because: set he...

So you want to add your custom taxonomy to a menu. You probably have to alter your screen options to let the taxonomy appear in your ‘menus’ menu. However, these settings are user -specific. So if your...

View Article

CSS tricks

Vertical align anything with just 3 lines of CSS source http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ .element { position: relative; top: 50%; transform: translateY(-50%); }...

View Article


Increasing memory allocated to PHP

Increasing memory allocated to PHP I needed to do this when I got blank screens after installing Buddypress source: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP...

View Article

Image may be NSFW.
Clik here to view.

My WordPress Plugins

Local and live Developer tools for wordpress - clone Developer from Automaticc to the plugins folder - remove .git and .gitignore - Activate the theme and select the plugins you want to install - I...

View Article

Add new admin to Google Analytics

In google Analytics: Go to admin Under Property got to User Management - Fill in the email address of the GA account - Give the new account all the rights Apparently it is not possible (anymore) to...

View Article
Browsing all 400 articles
Browse latest View live