• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

nSiteful Web Builders

Building a Better Web - One Site at a Time.

  • Home
  • About
    • Testimonials
    • Resources
  • Web Sites
  • Online Marketing
  • WordPress Support
    • Customized WordPress Training
    • 60-for-60 Sessions
  • Web Applications
  • Blog
    • Archive Listing Minimalistic
    • Blog Articles Grouped by Category
    • Case Studies
    • General
    • Portfolio
    • Reviews
    • Snippets
    • Techniques
  • Contact Jeff
    • Purchase Retainer Consulting Hours
    • About Retainer Consulting Hours

Snippets

Code snippets I want to have handy. You might, too.

By Jeff Cohan, February 5, 2023

Create a Custom Shortcode to Display a MemberPress Membership Price ANYWHERE on Your Website

Today, as I prepared to change the price of a membership on one of my MemberPress membership sites, I knew that there are several places on the site where the price of the membership was hard-coded. (For example, I’m, displaying a custom pricing table that doesn’t utilize MemberPress Groups Price Box. I also have a callout on the home page which displays the price of this membership — also hard-coded.)

A membership price shortcode would eliminate the need to manually update all those places. However, although MemberPress has lots of shortcodes for content restriction, it doesn’t have one for displaying the price of a membership.

So I created one.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: MemberPress, WordPress

By Jeff Cohan, May 24, 2022

How to Create a Simple Custom Events Plugin

My client wants to display on his site information about trade shows at which his company will be exhibiting. I know there are lots of event plugins out there, but most of the ones I know about would be overkill for our needs. So, I created a must-use custom Events plugin for this client. One of the requirements was to show both current and past events and to segregate them on the main events “landing” page.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Custom Fields, Custom Post Types, WordPress

By Jeff Cohan, January 26, 2022

Shortest CSS Grid Tutorial EVER!

Shortest CSS Grid Tutorial EVER! YouTube Thumb Image

I’ve been a reluctant/late adapter of the Flexbox and CSS Grid layout systems. I’m not proud of that, but it is what it is. After reading and watching a boatload of tutorials and videos on these systems, I got the idea that I should dive into Flexbox first — and I did. But then I watched a Kevin Powell video on how easy it is to get started with CSS Grid, and I was converted.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: CSS, CSS Grid

By Jeff Cohan, June 15, 2020

How to Hide the Mai Lifestyle Pro Banner Area With Code

Mai Lifestyle Pro Banner

Mai Lifestyle Pro, a popular Genesis child theme, supports banner areas after the header. Banner areas with banner images — much like featured images — can add interest to a post and provide subliminal context. However, the default behavior of the banner area presents a potential problem. Namely, if you want to display the banner area on only some posts, there’s no quick and easy way to hide the banner area from the posts on which you don’t want it to appear. But there’s a solution, involving just a few lines of code.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Genesis, Mai Lifestyle Pro, WordPress

By Jeff Cohan, July 23, 2016

Make Responsive Lightbox by dFactory Work with FooGallery

Make Responsive Lightbox by dFactory Work with FooGallery

This is a repurposing of an earlier blog article, First Look at Foo Gallery. I wanted to make it easy for people to find this solutions for making FooGallery and Responsive Lightbox by dFactory work together.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: FooGallery, Media, Plugins, WordPress

By Jeff Cohan, May 13, 2016

Display WordPress and WooCommerce Tags as Lists

Screenshot

Instructions for displaying a tag cloud as a list in WordPress and WooCommerece.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: php, Taxonomies, WooCommerce, WordPress

By Jeff Cohan, October 22, 2015

Diagnostic PHP: Get All User Constants

Sometimes I want to see all the constants I have defined. Here is some diagnostic PHP I use for displaying all user-defined constants.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, October 21, 2015

Diagnostic PHP: Get All User Functions

Sometimes I want to see all the user-defined functions that are in memory when a page loads. Maybe the page doesn’t need certain functions and I can realize performance improvements by removing them. And sometimes — I’m being candid here — I copy functions from one application into a library file for another and don’t need any of them for the current application. This function, offering some diagnostic PHP, helps.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, October 20, 2015

Diagnostic PHP: Get All Included Files

Sometimes when developing, it’s helpful to echo some diagnostic information to the screen. Here’s some simple diagnostic PHP I use for displaying all included files.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, July 27, 2015

How to Create Tooltips with CSS (Only)

CSS is so big that unless we work with it diligently on a day-to-day basis — and live long enough, we’re likely to be dealing with just the tip of the iceberg. In this article, I show a simple technique for creating tooltips with nothing more than CSS (no JavaScript). Hat-tip to Travis Neilson, whose DevTips YouTube channel is very informative and a real hoot.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: CSS

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

mailchimp signup

Subscribe to get notified when new articles are published. Unsubscribe any time. No spam. I promise. Check out my newsletter archives.

social

Twitter Facebook LinkedIn

Recent Articles

  • Create a Custom Shortcode to Display a MemberPress Membership Price ANYWHERE on Your Website February 5, 2023
  • Avoid Direct Styling; Use CSS Instead September 21, 2022
  • Blog Tags: What They Are (and What They’re Not) August 5, 2022
  • How to Create a Simple Custom Events Plugin May 24, 2022
  • Make your Web Site the Heart & Hub of your Online Marketing Strategy March 24, 2022

Filter By Category/Tag

Categories

  • Case Studies (7)
  • General (61)
  • Portfolio (5)
  • Reviews (12)
  • Snippets (16)
  • Techniques (37)

Popular Tags

Advanced Custom Fields Blogging Child Themes Content Marketing CSS CSS Grid Customer Service Custom Fields Custom Post Types Diagnostics Facebook FooGallery Genesis Gutenberg HTML Images iPhone Libra Live Chat Marketing Media MemberPress MemberPress Courses mu-plugins MySQL Photo Gallery php Pinterest Plugins Post Formats Pricing Project Management Security SEO Seth Godin Shortcodes Social Networking Surveys Taxonomies Trello Twitter Video Web design Web forms WordPress

siteground wp hosting

Web Hosting

wp101

EasyWordPresstutorialvideosforbeginners.
MemberPress CTA

Footer

Background

Web Sites | WordPress Support | Web Applications.

Formally trained in liberal arts and education (I have a B.A. in Government from Harvard and studied Secondary Education at Rutgers Graduate School), I have honed my skills in the communication arts and sciences as a teacher, trainer, instructional designer, writer, photographer, calligrapher, helpdesk manager, database programmer, and multimedia developer.

(I've also been a group counselor, waiter, bartender, bicycle messenger boy, computer salesman, carpenter's helper, financial analyst, and school board president.)

Tech

Systems since 1983.
Web sites since 1994.
PHP since 2001.
WordPress since 2007.

Contact

770-772-5134
Email Jeff
Send Money
All Ways

Copyright 2023, nSiteful Web Builders, Inc.

 

Subscribe

Pardon the interruption. I know popups can be annoying. But I’d love to have you as a subscriber.

Sign up to be notified when new articles are published. Unsubscribe any time.

* indicates required

Powered by MailChimp

×