Tag Archives for: php

The Complete Guide To Adding jQuery and CSS Into WordPress

 

Include Scripts and CSS into WordPress

 

Loading jQuery, Javascript and CSS into your WordPress Website correctly can be a pain in the neck. The confusion is due to the several different possible ways to load the scripts / css, then it depends on if you are loading scripts / css via the functions.php file for a theme or within a plugin.

Read on…
 

techNerdia

Adding an Affiliate Link Redirect Script Built Into Every WordPress Post

 
Affiliate Link Redirect ScriptThis is a very simple yet effective way to make every post of on your Website have the ability to mask your affiliate links. This solution works perfectly for Websites that have about 50 or less affiliate links to manage, which most Blogs fit into. 5E7BWGX7BRQP

Why Mask Affiliate Links?

Masking your affiliate links has several benefits, but the key benefits are:

  • A shortened affiliate link that you create is easier for you to remember.
  • The redirect script makes affiliate links look pretty.
  • It makes links look like they are internal, resulting in more clicks.
  • A visitor is not able to copy/paste the link while removing your affiliate id.
  • Reduces 3rd party software blocking, such as Norton blocking affiliate links.
 
Read on…
 

techNerdia

Javascript/PHP Script that Hides Referring URLs

 

Drop Referring URLsYou may be wondering why in the world would you ever want to hide a referring url? Well, for several reasons really.

  • Private ‘research’ Forums that link and share Websites, Content and Web Tools. This tool will ensure the original referring url is hidden, helping keep private areas unknown to statistic programs.
  • The script can be hosted on a remote domain so the original referring Website is masked.
  • Any Website linking to an online tools direct-backend url, like a rank checking site.
  • It can be used to help kill new user link spam from WordPress comments or Forums.
  • Use it to kill search engine link benefits from open forums or any public website that posts links.
Read on…
 

techNerdia

Loading The WordPress Comment Form Within A Lightbox

 

Wordpress Comment Form LighboxIn this tutorial I will be showing you how to load the WordPress comment form within a lightbox. A lightbox is typically used on video or photo galleries. When a thumbnail or link is clicked, jQuery (a Javascript framework) overlays the content on top of the Website. This keeps a visitor from leaving the page being viewed and allows the visitor to easily surf through the gallery.

The same idea is used to load the comment form within the lightbox. When any “make a comment” link is clicked on a post, the lightbox opens loading the comment form within it. After a comment is made, the lightbox closes, and the the visitor is taken to the location of the comment.

Read on…
 

techNerdia

4 jQuery Fadein Effects That Will Catch Your Readers Eyes

 

jQuery FadeIn ExampleLoading a hidden div when the page loads or when the scroll-bar moves pulls a visitors eye towards the faded-in feature. For areas like advertisements or opt-in boxes this effect can make a feature stand out from the rest of the Website.

I use this nifty trick to load my code examples once the page is loaded, and when the scroll-bar reaches 600px from the bottom, the opt-in box at the bottom of my posts loads. Split tests thus far have not improved my opt-in rates, but it has not reduced them either, thus the feature will stay.

Read on…
 

techNerdia

30+ WordPress Admin Bar Tips and Tricks

 

30+ WordPress Admin Bar TipsWith the release of the WP My Admin Bar WordPress Plugin, I have received a few feedback questions about how to expand the toolbar in various ways. Most of these questions pertained to simple snips that could be added to a themes functions.php file or the must use plugin directory (mu-plugins) for multisite installs.

Because of these questions, I have put together 30+ (currently 34) different examples of how to customize the WordPress Admin Bar. As well, I have included two PHP Classes that wrap up various aspects of the examples for easier use within your functions.php file.

Read on…
 

techNerdia

Add Google Code SyntaxHighlighter to WordPress without using a Plugin

 

The Google Code SyntaxHighlighter instantly transforms code/scripts/markup (php, html, css, java, etc) into a readable and downloadable example code.

Google Syntax Highlighter Example

Read on…
 

techNerdia

Adding a Link to the WordPress Dashboard Menu that opens an Internal or External Page. [Updated]

 

Dashboard Menu LinkUpdated: January 23, 2012 – This tip walks you through adding a Statistics link for Google Analytics within the WordPress Admin under the Dashboard tab. Then how to add multiple links to the Dashboard menu and finally how to open an internal page from the Dashboard menu.

Read on…
 

techNerdia

Using Shortcodes to Display and Manipulate Custom PHP Code within WordPress Posts or Pages

 

From WordPress, a Shortcode is: a simple set of functions for creating macro codes for use in post content.

Wordpress Shortcode Examples
Read on…
 

techNerdia

Find the Parent Post ID and Children ID’s of Multiple Nested Posts or Pages – WordPress Tip

 

Get Post AncestorsGoogle is filled with countless WordPress users asking How to find the Parent Post ID from a Child Page, when that Child Page is multiple nested levels deep. And like those users, I recently found myself asking this same question.

Unfortunately this is one question that has more answers, solutions, and headaches than even Google can understand. All the solutions I did find did not recursively go through endless children posts, the rest simply didn’t work.

So I kept looking and I’m glad that I did….

Read on…
 

techNerdia

Select A Post Tag: