Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Thursday, February 22, 2018

Publish Wordpress Posts Within a Specific Date Range


If you are okay not having an interface, the Display Posts Shortcode Plugin has parameters you can put into your shortcode to get posts from a certain date range.

date_query_before Specify the before argument for a date query. More info on Date Queries. Default: empty Example: [display-posts date_query_before="2015-12-31" date_query_after="2015-01-01"]

date_query_after Specify the after argument for a date query. More info on Date Queries. Default: empty Example: [display-posts date_query_before="2015-12-31" date_query_after="2015-01-01"]

Display Posts Shortcode (Available Parameters) — Support — WordPress.com

When paired with category/taxonomy parameter, this can be powerful to get archived posts that need to be displayed by date or their specific category for content/structural reasons.

taxonomy, tax_term, and tax_operator
Use these parameters to do advanced taxonomy queries. Use ‘taxonomy’ for the taxonomy you’d like to query, ‘tax_term’ for the term slug (or terms) you’d like to include, and ‘operator’ to change how the query uses those terms (most likely this field will not be needed).
Default: ‘taxonomy’ = empty , ‘tax_term’ = empty , ‘tax_operator’ = ‘IN’
Example: [display-posts taxonomy="color" tax_term="blue, green"]

If you want to display your posts with a the image thumbnail, and have it look better, you'll need to add some custom CSS to float the image.

And to separate the spacing between the posts with DIV wrappers (instead of OL or LI that add bullets), you'll need to add margin for:
.listing-item {margin-bottom: 2em;}

Posts by Date Range with a Plugin Visual Interface


WP Posts Master — WordPress Plugins
This plugin offers a visual interface and many options for getting Wordpress posts with specific filters.  However, only the Pro edition offers date filtering: "Filter Posts by custom dates. You can decide Start & End Date"
The Pro Edition is $28 on the Evato Marketplace

Thursday, January 18, 2018

Update Wordpress Site URLs for images and links with a plugin



Velvet Blues Update URLs — WordPress Plugins

As of 1/18/18, the plugin has a five star rating from Wordpress users, has 300,000+ active installations, and was last updated 4 days ago.

It's tested to be compatible up to Wordrpess 4.9.1

The plugin requires version 4.5 or newer, so some really old Wordpress installations may need to have the site URLs replaced en masse with PHPMyAdmin or another plugin.

Friday, December 29, 2017

Duplicating a Wordpress site to Create a Development Area


The Process for Duplicating Your Wordpress Site Includes These Steps


  1. Download the Wordpress database using PHP MyAdmin.
  2. Download all files in the website directory with an FTP client.
  3. Sync/upload the Wordpress files to your development site directory.
  4. Create a new database for the Development site and restore the database download to this empty database.
  5. Edit wp-config.php on the development site with your new DEV database details.
  6. Change the Site URL with functions.php (temporary) or in PHPMyAdmin.
  7. Begin building your new site.


General Information on Wordpress Backups.


Create Sync With Your Site
WinSCP and other programs allow you to sync with your website to keep a mirror copy of the content on your server and hard drive updated. It saves time and makes sure you have the latest files in both places.

Transmit for Mac also supports file syncing over FTP.  I've found that for a Wordpress site with only a few file changes (ie: a minor Wordpress version update) that it takes about 8 minutes.

Thursday, February 25, 2016

Wordpress Setup Checklist for Basic Website Development

Wordpress Setup

  • Create a separate user for the site owner/business manager and make their user with Admin or Editor privileges, depending on skill level and editing needs.
  • Set the homepage to be a static page. (Configured in Settings > Reading), or from a Theme's options panel.
  • Setup Sidebars with Theme and/or WooSidebars

Plugins

  • Backup:  Updraft Plus.  Schedule weekly or monthly backups to go to the site owner, depending on how frequently they anticipate posting content. 
  • SEO: Yoast SEO
  • Prevent bloated database/excessive revisions:  WP Revision Control
  • Add Contact Form 7

After site is transferred
  • Replace any URLs referencing the development site. Do a search in the Pages list for links or image URLs referencing the development site.  If any are found, remove them from the individual pages
  • Create a Backup using Updraft plus
  •  

Monday, December 1, 2014

Search and Replace URLs on a Wordpress site/database


Search and Replace « WordPress Plugin
Free
Last Updated: 2014-9-15
4.4 out of 5 stars

WordPress Serialized PHP Search Replace Tool
Free PHP script that provides text boxes to do a search and replace on a database (better for intermediate users). This requires that you know your Wordpress database username and password.

Search and replace domain names in your Wordpress site using SQL queries.  Make sure you've backed up your database before doing this, as typos could wreak major havoc on your website. This tutorial from WP Beaches has detailed screenshots showing the process in phpMyAdmin.

Wordshell
$79 single machine license with free life-time upgrades
$60 - includes 12 months of free upgrades
$230 - site license option with free upgrades for life (Wordshell can be installed on unlimited machines within a single organization)

Tons of command line tools to manage multiple Wordpress sites at once.
Easy search and replace command to update URLs when moving a Wordpress website from a development location to its live location.



Read more:

3 Efficient Tools for WordPress Database Migration

Saturday, November 29, 2014

Wordpress Slider Plugins with Thumbnails (for photography and portfolio websites)

Master Slider 
Free version available on Wordpress.org
Paid version is $19 on sale.
compatible up to Wordpress 4.0.1
4.8 out of 5 stars on Wordpress.org
Seems like the free version offers a lot and the pro version provides advanced features, like more layouts, Flickr and Facebook sliders, etc.
* Very reasonably priced for the Pro version.



Slider Pro

by Bqworks
$28 for Wordpress plugin
horizontal thumbnails,  mixed content, responsive, touch swipe, simple, elegant, unobtrusive, cross-fade.
* looks like the style of slider I prefer, with larger thumbnails.
* Recommend this one to both Ian V. C., and Ian R.


Carousel, full page width.  These are great for portfolio sites.


Foto Slider

by Slider Villa
$12 for single site / $30 for multi-site
* multiple color options, multiple columns of thumbnails, nice vignette fade effect, white design option is helpful for most websites.
* could be more expensive than the asking price

Foto Slider on dark background with three columns of thumbnails.

Foto Slider on light background with two columns of thumbnails.


MetaSlider

$19 / $39 / $99
simple, elegant, opaque thumbnails
five or six layout options.




Wonderplugin Slider

by WonderPlugin
$59 / $79 / $99
About 8 different slide styles with 20 total variations
** expensive compared to other options

 







Soliloquy
$



Cosmo

by Slider Villa
$12 single / $30 multi-site
* Full page width slider, modern style, great for portfolio sites where clients need to focus on the images or video!


Other slider choices

7 Best Free WordPress Slider Plugins - WPMU DEV
October 2013



Saturday, October 18, 2014

Preventing Spam Comments in Wordpress Before They Happen

Rather than using an after-the-fact solution like Akismet to stop comment spam, I prefer to use a Captcha or other human verification technique to stop all spam from ever being saved to my Wordpress database.  Some Captchas are difficult to read, so I prefer something that is either a math addition problem or an interactive one that only requires one click or drag.  Some interactive Captcha plugins may not work on mobile devices.


Here are few of the top rated options to block Wordpress comment spam at the form level.


Math Captcha
Customizable math Captcha prevents comment spam, bot registration, and integrates with Contact Form 7.
4.5 out of 5 stars
Last Updated: 2014-9-5
Compatible up to: 4.0



Sweet Captcha 
Uses an interactive, fun, and illustrated widget to prevent comment and registration spam.
4.2 out of 5 stars
Last Updated: 2014-9-3



Captcha
Uses a math equation Captcha to stop comment spam, also integrates with Contact Form 7 and BuddyPress registration forms.
4.6 out of 5 stars
Last Updated: 2014-10-15

Monday, August 11, 2014

How to update the Canvas theme

2. Delete the theme on your server

If you have done any customizations to your theme files, these customizations will be lost if you use this method. If you have not done customizations to the theme, or you are running a child theme you can:
  1. Go to Appearance > Themes
  2. Activate TwentyEleven (or another theme)
  3. Delete the old theme
  4. Upload new version via Appearance > Themes > Install Themes > Upload
  5. Activate the new version
This is one of the methods described in the official Woo documentation on how to update a theme.

This should probably be done during off hours (late at night) so that it does not affect a website's functionality.  The website would display a generic theme until the steps are finished.

Tuesday, June 3, 2014

Top Wordpress Backup Plugins - June 2014

Online Backup for Wordpress was my go-to backup plugin for Wordpress. The interface was simple and I loved that it gave me a real-time progress bar when making a backup.  Even on a large site, a full database backup took only about a minute.   As of this writing, the plugin has not been updated since 2013-9-9, which was nine months ago, and the plugin is listed as being compatible up to Wordpress 3.6.1.  It has 363,000 downloads to date.

As of June 2014, these are the top backup plugins available for Wordpress.
See a listing of all the top plugins for Wordpress

UpdraftPlus - WordPress Backup and Restoration
4.9/5 stars
Requires: 3.2 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-2
Downloads: 921,622
(The first backup plugin listed on the Popular Plugins.)
Filesize: 2.6 MB zip.  (version 1.9.13)

BackUpWordPress
4.6/5 stars
Requires: 3.7.3 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-6

Downloads: 1,063,818
File size: 307KB (version 2.6.2)

BackWPup Free - WordPress Backup Plugin
4.3/5 stars
Requires: 3.4 or higher
Compatible up to: 3.9.1

Last Updated: 2014-4-22
Downloads: 1,295,709
File size: 2.7MB (version 3.1.2)
Note: interface appears to have a nice progress bar showing the status of the backup.
As of June 3, 2014, it is the most downloaded Backup plugin on Wordpress.org.  However, it only has a rating of 4.3/5 stars, whereas UpdraftPlus has an amazing 4.9/5 stars.

Friday, April 4, 2014

Limit the number of Wordpress revisions

Wordpress revisions are a great feature, but they can easily bloat the overall size and number of entries in your database, leading to backups that are much larger than they need to be.

A handy plugin is available on Wordpress.org called WP Revisions Control.  It lets you set the number of revisions for pages and posts.  The number can also be set on an individual basis for pages and posts.

The other great thing about this plugin is the "Purge These Revisions" button that appears at the bottom of the post editor.  This can help clean up your homepage or other pages that have countless saved revisions.

 Plugin zip size: 11 KB
A page with too many revisions.  My homepage was worse with about 70 revisions that were bloating the database.

Plugin options under Settings > Writing

Plugin options on individual pages and posts at the bottom of the post editor.


Thursday, April 3, 2014

Remove comments completely from the 2012 Wordpress theme

The highlighted lines are responsible for letting comment spam though, even if you turn off comments in the discussion settings in the Wordpress dashboard.


Wordpress has an annoying habit of letting spam comments through on a site with only pages and no blog posts.

To completely remove comments from being posted in the 2012 theme, open the content.php file in your twentytwelve theme folder and remove or comment out the lines highlighted in the screenshot above.  It's best to make this change in a Child Theme so you can easily undo this later if you decide to have a blog on your Wordpress website.

Thursday, October 3, 2013

This account has reached it's limit of concurrent processes - fixing a Wordpress issue

"This Account Has Reached it's limit of concurrent processes".

We got stuck with this problem on our hosting account that hosts about a dozen Wordpress sites.
After checking our server logs, wp-cron.php appeared to be the culprit.

Wp-cron.php helps by doing some automated things like posting scheduled content, checking comments for spam, and emailing comment notifications.  The problem is that wp-cron.php loads on every single page view, so this could be running hundreds, thousands, or millions of time each day, depending on your website traffic.

To stop wp-cron.php from running on every page visit, add this near the top of wp-config.php

define('DISABLE_WP_CRON', true);

To run wp-cro.php at your own chosen interval, create a cron job that runs every hour with the following line.  If your site only receives one or two comments per day, the cron job could be run every 12 or 24 hours.

wget -O /dev/null http://www.example.com/wp-cron.php?doing_wp_cron

via: wp-cron.php – How To Stop It From Running Frequently

Friday, August 9, 2013

Plugins and Features for a Professional Wordpress Website

After building over 20 websites with Wordpress, I realized the need to compile a list of must-have plugins for every website and which plugins to keep in my toolbox for the occasional project.

Plugins are important for marketing, search engine optimization, and improving the performance of your site when it's heavy with content or numerous plugins.  But most of all, plugins enhance the capabilities of your site (usually for free) and straight out of the box, no advanced coding required.

Every wordpress website should have:
  1. Search Engine Optimization: Wordpress SEO [formerly Yoast].
    This is the most widely used SEO plugin for Wordpress today, with over 5.6 million downloads [as of early August 2013].  I first came across this plugin when looking at a site designed by a professional e-commerce consultant.   He used this plugin on several sites and after using it on a few of my own websites, I was hooked.  It's easier and more intuitive than any other SEO plugin for Wordpress I have used. It also offers XML Sitemaps, which can be activated by checking one box.  XML sitemaps are very important for google search engine ranking and help google to show more links into the key pages of your site.
  2. A good contact form: Contact Form 7 or Easy Contact Forms
    A clean, professional looking contact form is essential to connect with customers and increase leads.  The best contact form plugins for Wordpress support spam filtering or CAPTCHA, so you're not wasting time checking spam emails that you thought were customers contacting you.  I endorse these two plugins because they are simple and completely customizable.  Some contact forms require you to use their default fields, which means they lack flexibility and adaptability.  Contact Form 7 is very simple to use, but does not have a drag and drop interface, so you have to move around code to change the field ordering.  Easy Contact Forms has an awesome drag and drop interface, but the dizzying array of options can be intimidating for the first few minutes while you acclimate to all the choices.
  3. Easy database backup: Online Backup for Wordpress
    No matter what web host you use, it's smart to make your own backups of your Wordpress Database.  A Wordpress database contains all the content of posts and pages, and all settings you have changed in your Wordpress dashboard.  It does not include your images, uploads, and any file modifications--these need to be backed up separately.  Online Backup for Wordpress is simple, intuitive, and very fast.  On an E-commerce website with over 400 products and many posts, the plugin created a backup of a 37.5 MB SQL file in about 1 minute.  It compressed this SQL file into a downloadable 2.5 MB ZIP file that makes it easy to store weekly backups without wasting hard drive space.  Regular backups are critical because some plugin or theme updates can break a Wordpress website that was previously rock solid.  This plugin can schedule weekly or monthly ZIP backups to be emailed automatically, ensuring that your website's content is protected.
  4. Caching:  WP Super Cache
    Any Wordpress site can be improved with a caching plugin.  Caching is critical if you are running a large blog, a site with many plugins, or if you have a content heavy site. WP Super Cache speeds the loading of pages by reducing the requests for information from the database.  Visitors are served a static HTML page that will load faster.  Wordpress site owners previously had to accept that their page load times would be slowed if their site made use of several plugins.  Caching takes the bottleneck of the equation,  allowing your site to retain visitors and remain up if there's a spike in visitor traffic.

Plugins and features to meet client needs:



Woo Sidebars (free)
http://wordpress.org/plugins/woosidebars/
Create new sidebars for a Wordpress site and assign them to specific pages, without touching a line of code.

Webtreats Column Shortcodes (plugin download at the page bottom)
Create multi-column layouts on your site with shortcodes.

Easy Fancybox
Display more videos (or content overlays).  Reduce the page load times when embedding youtube videos.

Slideshow (free)
Slideshow provides an easy way to integrate a slideshow for any WordPress installation.  After using this plugin on just one client website, I'll be adding it to my photography website instead of using a coded Javascript slideshow.

The options are very intuitive and the only thing that takes a bit longer is that images need to be added in the Media Library before they can be inserted into a slideshow.  Several slide transition options are provided, and this plugin has so many custom options to choose from.

Each slideshow's height, width, navigation options, and image ordering can be customized.  The theme authors were smart to provide both the shortcode and the PHP code needed to insert a slideshow into Theme Template files.

This plugin has saved me a lot of work and I plan to donate to the developers.



Google Analytics
Some themes offer a box to add your Google Analytics tracking code.  If your theme does not, there are several plugins available to insert the code so that template header files do not have to be edited manually.
Google Analytics for WordPress [Created by Yoost de Valk, the author of Wordpress SEO]
Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.

Google Analyticator - adds a dashboard widget to show Analytics reports
Easy installation of Google Analytics code on your site and a dashboard widget to show performance

Friday, June 21, 2013

Wordpress 2012 child theme modifications reference

The 2012 theme out-of-the-box is a great place to start for theme development because you have an editable navigation bar, good typography, and a clean layout to start with.

These are my go-to child theme modifications to 2012 when setting up a static website for a client.

Disable automatic word hyphenation
Requires: CSS / style.css
WordPress › Support » How does one stop auto text hyphenation completely

Move the header image above the navigation bar.
Requires: PHP / header.php
Cut the PHP block of code (pictured below) that outputs the header image and paste it above the NAV element that creates the main navigation.



Remove the space above the header image
Requires: CSS / style.css
Add these two CSS styles to your custom stylesheet to remove the spacing above the header image and make it flush with the top of the browser window.



Change the default "Leave a comment" link text
Requires: HTML/PHP | content.php
Go to line 28 on content.php.  Find the leave a reply text on this line and replace it with your wording of choice.
Hide the H1 page title only on pages
Requires: CSS /  style.css
Add the following CSS to hide the page title heading only on pages.  We use this because we want to still have automatic titles display on our single blog posts.


Sunday, May 26, 2013

Add sidebar creation option to the 2011 theme

How to Use Custom Sidebars on Posts and Pages | Wptuts+
This tutorial shows step by step how to add a theme option setting to add your own sidebars to a theme and then be able to apply them from the Page editor.  This is much more streamlined than having to a create a separate page template every time you want a page to have a different sidebar.




Thursday, February 21, 2013

The Most Popular Contact Form Plugins for Wordpress


** Download numbers recorded from the associated Wordpress plugin page on 2/21/13

Contact Form 7
9,911,000 downloads
Updated on 1/21/13
Still generates the HTML for tags, but shows the code, not a visual preview
Pros: supports Akismet, captcha, and Ajax submitting

Fast Secure Contact Form
3,432,000 downloads
Updated on 2/4/13
Interface is a bit klunky, but you don't have to mess with any HTML

Contact Form
575,000 downloads
Updated on 2/19/13
Appears to be written by a coder whose native language is not English
Might not support adding a variety of different fields

Custom Contact Forms
516,000 downloads
Updated on 1/10/13
compatible up to 3.4.2
"Rearrange fields with a drag-and-drop interface"
"Export form submissions to .CSV"
** Might not support radio buttons
"Manage options for your dropdowns and radio fields in an easy to use manager"
"Import and export forms/fields/styles/etc. with ease!"
-- Was planning to pick this plugin because of it's export and import features, but it is not listed as being compatible with 3.5.1 and there are no screenshots to be found.

Formidable Forms
302,000 downloads
Updated on 12/12/12
compatible up to 3.5.1
"Quickly and easily build forms with a simple drag-and-drop interface and in-place editing."
** Supports radio buttons

Easy Contact Forms
207,000 downloads
Updated on 6/27/12
appears to have a clean visual interface

Rising stars

Visual Form Builder
146,000 downloads
Updated on 2/8/13
"Build beautiful, fully functional forms in only a few minutes without writing PHP, CSS, or HTML."
** Supports radio buttons
One-click form duplication. Copy a form you've already built to save time
Use your own CSS (if you want)
*** Multiple field layout options. Arrange your fields in two, three, or a mixture of columns.

Form Maker
71,000 downlads
Updated on 2/20/13
Very visual interface that probably allows quick form creation.



Monday, February 11, 2013

Resources to convert an HTML website to Wordpress

After converting several static HTML websites to Wordpress and XHTML, it's about time that I have some saved resources.  Code snippets are fantastic, working examples are even better.

WordPress Shortcodes: Why You Need Them and How to Create Them
This example shows the basic code needed to create a "wrapper" shortcode that will wrap HTML tags around your content.  After a shortcode has been created, it can be reused at will throughout a website.  Providing shortcodes to clients will make editing their site easier and allow them to integrate design elements without trudging through HTML.

Wordpress does not support shortcodes in widgets by default.  Add the one-line filter code at the bottom of the same tutorial to enable shortcodes in widgets.

CSS Styling Lists
Styled lists with CSS may help you clean up HTML that was left behind from a previous coder. The website I'm converting this month from static HTML to Wordpress had a bloated table layout to achieve links with "bulleted" images.  CSS list styles helped me to clear out all the unnecessary code and replace it with clean, beautiful markup.

Rounded corner layouts with DIVs.

CSS Image Rollover - Stack Overflow
This helped me convert javascript rollovers to pure CSS rollovers, which not only cleaned up the code, but will make it easier to edit in the future.

Box-shadow, one of CSS3′s best new features - CSS3 . Info
After combining the box shadow with a CSS border, I was able to replace a rounded corner box's nested HTML tables with some clean CSS.



Wednesday, November 14, 2012

Allow Paypal users to Pay by Credit Card in WP E-Commerce

To allow Paypal Express Checkout customers to pay by credit card, one line of  code that passes the "sole" variable needs to be added to tell Paypal to enable the credit card payment

Open this file
/wp-content/plugins/wp-e-commerce/wpsc-merchants/paypal-express.merchant.php

Find this line of code (approximately line 221):

$nvpstr = $nvpstr . "&RETURNURL=" . $returnURL;


Immediately below that line, add this line of code:

$nvpstr = $nvpstr . "&SOLUTIONTYPE=Sole";


Thanks to the guys over at Websightdesigns.com who posted the above tutorial in April 2012.

Thursday, October 25, 2012

Wordpress and Thesis Code Solutions Used for an E-commerce Site

Multiple Custom Sidebars in Thesis Using Filters
(Get custom sidebars in Thesis without custom page templates.)
Using a four part approach, of which three parts are included on this DIY Themes tutorial and the final part of which was gleaned from this well written article about Sidebars in Wordpress, we were able to create a total of four custom sidebars that all work brilliantly.  One of the main keys to getting all of them to work correctly was the tip by Justin Tadlock that each sidebar must have a unique ID.  The name of the sidebar does not really matter, because without unique ID's Wordpress will assign them automatically and cause chaos.  We placed widgets in multiple sidebars before assigning unique ID's and they were going haywire.

Fix "Fatal Error: Allowed Memory Size" problems
WordPress Error Fix(?): Increase PHP Memory for cache.php : Perishable Press
The second method in this tutorial using htaccess started generating errors on our server, so be aware if that one does not work for you.

After adding in the memory limit fixes to bypass the error, the cache in your local browser may be a bit screwed up, so you'll want to clear your browser cache if you notice anything is not working correctly on your site or if any panels in the Wordpress Admin area.  We had a NextGen gallery slideshow stop working on our homepage and also had some styling disappear from our Ubermenu navigation menu.  As soon as we cleared our Firefox/Chrome browser cache, everything was back to normal.

Remove "0 Comments" Thesis Section from Wordpress E-Commerce Store Pages
Display shopping cart on specific pages only? - GetShopped.org
The Thesis theme was automatically adding the "0 Comments" section to any of our WP E-commerce product category pages that had a category image.  WPEC products and category pages do not have a custom post type, but they do have a custom taxonomy (as of version 3.8.8.3).  The conditional tags below will allow you to remove any Thesis elements and also create custom sidebars that only apply to your store pages.

is_tax( 'wpsc_product_category' )
is_singular( 'wpsc-product' )

Put the following code in your custom_fuctions.php file

function my_comments_link() {
  if (!is_single() && !is_page() && !is_tax( 'wpsc_product_category' )) {
    echo '<p class="to_comments"><a href="';
    the_permalink();
    echo '#comments" rel="nofollow">';
    comments_number(__('Post a comment', 'thesis'), __('<span>1</span> comment', 'thesis'), __('<span>%</span> comments', 'thesis'));
    echo '</a></p>';
  }
}

remove_action('thesis_hook_after_post', 'thesis_comments_link');
add_action('thesis_hook_after_post', 'my_comments_link');



Create a Three or Four Column Widgetized Footer in Thesis
This tutorial straight from the official Thesis source provided most of the code we needed to create a four column widgetized "fat" footer on our site.  We made a few important changes to make everything work smoothly with our other custom sidebars.  The most important style change was to change the overall CSS width from 33% to 25% since we used four columns instead of three.  While registering new sidebars, we added a unique ID for each, since this is a best coding practice.


Custom Sidebar Background Colors for a Set of Specific Pages in Thesis
Using the third code section in this official DIYThemes tutorial, we were able to create our own BODY class and apply it to a specific set of pages with a conditional tag.  We used a page array, but you can use whatever conditional tags are needed to target specific pages/posts/etc.

in custom_functions.php:

// Add a class for Gallery pages styling
function gallery_styles($classes) {
    if (is_page(array(6, 160, 162, 699, 4521, 165, 169, 171, 173, 175, 703, 50, 53, 143, 241, 243, 245, 254, 247)) ) {
        $classes[] = 'gallery_custom_colors';
     }
    return $classes;
}
add_filter('thesis_body_classes', 'gallery_styles');


in custom.css:

.gallery_custom_colors #content {
    background-color: #252121;
    color: #888888;
}

.gallery_custom_colors #content_box {
    background-color: #8f8889;
}

.gallery_custom_colors h1 {
    color: #888888;
}


Fixed Product Category Pages Not Displaying the First Product Title in Wordpress E-Commerce
Issue 681 - wp-e-commerce - wpsc-products_page.php not displaying first product title?
We used the code posted in comment #5 from March 22, 2012 to fix this issue on our site.  See the next section below.  We also had to remove the Thesis headline area, because it was listing the name of a product and not the name of the category. (See the next link below for more info.)

Fixed the Category Title Not Displaying on Wordpress E-Commerce Store Category Pages


Remove the Thesis Headline Area on Wordpress E-Commerce Store Category Pages
thesis_show_headline_area (DIYThemes)
We used this code with a conditional tag modification to remove the headline area only on the store pages.

To target only Wordpress E-Commerce Store category pages, use this conditional tag:
is_tax( 'wpsc_product_category' )

Remove the Thesis 'Previous and Next' Links
Move Previous and Next Links (DIYThemes)


Add some text or content above your Thesis header
Coming Soon

Listing Recent Posts from a Specific Category with a Shortcode
Mastering WordPress Shortcodes | Smashing WordPress
We used #5 Get posts from WordPress Database with a Shortcode.  The client wanted to create an article page that would automatically list recent posts from a specific category.  I made the shortcode a friendly name [adventure_posts] so everyone working in the Wordpress dashboard would know what it does.

Tuesday, November 8, 2011

Basic Customizations When Starting a Thesis Website

1. Disable Comments on All Pages
On the Design Options page:


2. Remove the Thesis attribution in the footer
Add this line to the custom_fuctions file.
// REMOVE THE DEFAULT THESIS FOOTER: Get smart with the Thesis theme...
remove_action('thesis_hook_footer', 'thesis_attribution');

3. Remove the "Wordpress Admin" link
 On the Design Options page:



4. Replace "0 Comments" with something more appealing