Sigma Web Technologies
  • Home
  • Local Marketing
  • Recent Projects

Display the Current Year in Your Copyright Notice

By Larry Levenson On April 6, 2013 · Leave a Comment

With all the websites we manage, it’s unlikely that we’re going to go around to all of them and update the year every January. The ideal way to handle this is with a snippet of PHP:

<p>© Copyright 2000- <?php echo date(‘Y’);?>, Sigma Web Marketing. All rights reserved.</p>

However, is the server you’re working on [...]

Continue Reading →

WordPress: Add the
button to the Visual Editor (TinyMCE)

By Larry Levenson On April 6, 2013 · Leave a Comment

Strangely, the <hr> tag (horizontal rule) button isn’t enabled by default in the WordPress Visual Editor (TinyMCE). Here’s how to turn it on, along with any other buttons you want to use.

Open up your functions.php file and add the following code:

function enable_more_buttons($buttons) { $buttons[] = ‘hr’; /* Repeat with any other buttons you [...]

Continue Reading →

CSS Styling for hr tag

By Larry Levenson On March 13, 2013 · Leave a Comment

I like this light-gray horizontal rule that is visually centered within the container and tapers to nothing at the end. Very cool!

hr { clear: both; float: none; width: 100%; height: 1px; margin: 1.4em 0; border: none; background: #ddd; background-image: -webkit-gradient( linear, left bottom, right bottom, color-stop(0, rgb(255,255,255)), color-stop(0.1, rgb(221,221,221)), color-stop(0.9, rgb(221,221,221)), color-stop(1, rgb(255,255,255)) ); [...]

Continue Reading →

How to Change Excerpt Length Depending on the Category

By Larry Levenson On January 27, 2013 · Leave a Comment

Add this snippet to the functions.php file to change the length (number of words) in the excerpt on a particular category page.

function custom_excerpt_length($length) { if (is_category(‘Events’)) { //For the events category return 65; } else { return 40; //for all others pages } } add_filter(‘excerpt_length’, ‘custom_excerpt_length’, 999);

 

Continue Reading →

Contact Form 7 Redirect to Confirmation Page

By Larry Levenson On December 22, 2012 · Leave a Comment

Do you want Contact Form 7 to redirect users to a new page after they submit? Here’s how!

Add this to the “additional settings” section:

on_sent_ok: “location.replace(‘http://www.YOURSITE.com’);”

Continue Reading →

Adding a Feed to the WordPress Dashboard

By Larry Levenson On December 16, 2012 · Leave a Comment

Want to keep your clients up-to-date with your blog? It’s easy to add a feed from your blog to their WordPress Dashboard. Simply paste in the following code, after adjusting to reflect your feed name and feed URL.

// Adding a news feed widget to the dashboard function wp_admin_dashboard_add_news_feed_widget() { global $wp_meta_boxes; // Our new [...]

Continue Reading →

Replace Excerpt Ellipsis with Read More Link

By Larry Levenson On October 8, 2012 · Leave a Comment

Add this to the functions.php file to replace the [...] at the end of your excerpt with a “Read more →” link.

function replace_excerpt($content) { return str_replace(‘[...]‘, ‘ <a href=”‘. get_permalink() .’”>Read More →</a>’, $content ); } add_filter(‘the_excerpt’, ‘replace_excerpt’);

Continue Reading →

How to Force Multi Site to Use Subdirectories

By Larry Levenson On September 23, 2012 · Leave a Comment

Lee Hodson wrote an excellent post with this title at journalxtra.com/websiteadvice/wordpress/how-to-force-multi-site-to-use-subdirectories-2427

“One of the most common issues to afflict most web developers who try to enable WordPress Multi Site is WordPress’s insistence that subdirectory blogs cannot be setup. . . There is a workaround to [...]

Continue Reading →

Display Information about your Multisite

By Larry Levenson On September 19, 2012 · Leave a Comment

If you’re using WordPress Multisite, you may find it useful to be able to display some information about your blog network: Network name, number of blogs and users. Simply paste the following piece of code where you want the info to be shown, for example in your theme footer.

<?php if( is_multisite() ): ?> The [...]

Continue Reading →

Cron to send emails

By Larry Levenson On September 9, 2012 · Leave a Comment

You can easily send email alerts with a cron job, but all paths must be absolute.

4 4 * * * /usr/local/bin/php /home/abcdefgh/public_html/visitors-send-email.php

When you use such cronjob to send the mail alerts, the “require_once” path inside the “/home/abcdefgh/public_html/visitors-send-email.php” file must be absolute path instead of relative one. If we mentioned it as relative it [...]

Continue Reading →
← Previous Entries
  • Categories

    • Code
    • Email Marketing
    • Local Marketing
    • News
    • Recent Projects
    • Security
    • Social Media
    • SOHO
    • Testimonials
    • Tools
    • Wordpress
  • Twitter Feed

    • No public Twitter messages.
  • Tags

    android aweber backup book clubrunner css dacdb email marketing facebook fbi foursquare functions gmail gmail filters gmail signatures google google buzz iPad iphone linkedin linux Local Marketing myspace openoffice os x polio plus prescott az prescott enews prescott young professionals press releases projects ratepoint Rotary Club search security seo social social media techcrunch tweetdeck twitter website speed windows wonderhowto wordpress
  • Sigma Web Marketing

    8168 E. Florentine Rd, Ste C
    Prescott Valley, AZ 86314
    928.713.8349
    contact us

    I'm a proud member of the WordPress Users Association, Become a member today
    Tapestry Theme - A Tumblog-Style Theme for Wordpress
"Error 404: Your username was not found on Twitter." — sigmawebtech

Sigma Web Technologies

Pages

  • Contact Us
  • Front Page
  • Thank You for Subscribing to our Newsletter

The Latest

  • Display the Current Year in Your Copyright Notice
    With all the websites we manage, it’s unlikely that we’re going to […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2001-2011 Sigma Web Technologies. All rights reserved.
Platform by PageLines