Tag Archives: WordPress

WP e-Commerce – Can’t Insert Image into Product Content [FIX]

WordPress version: 3.1
WordPress theme: Twenty Ten 1.2
WP e-Commerce version: 3.8

Problem:

The “Insert into Post” button is missing when trying to insert a product image into a WP e-Commerce Product Page

Solution:

File: root/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/display-items-functions.php

Line 1102:

Change

td.savesend input.button {
display: none;
}

To

td.savesend input.button {
display: block;
}

WARNING: I have no idea what type of consequence this edit will have on your WordPress installation or if it will conflict with your theme.

WordPress – Adding Second Menu

Adding a second menu to the Speaky WordPress theme from WPBeginner, even though this tutorial is for adding a second menu specifically to the TwentyTen WordPress theme.

Tutorial: http://digitalraindrops.net/2010/08/the-second-menu/

Files affected:

  1. functions.php
  2. header.php
  3. navigation-2.php (new file)
  4. style.css

Note: Since I didn’t want the second menu to look different from the main menu, as the tutorial instructs, I altered some of the PHP code in the navigation-2.php file.

Change:

<?php /* Start add our second page menu */ ?>
<div id=”pagemenu” role=”navigation”>
<?php wp_nav_menu( array( ‘container_class’ => ‘page-header’, ‘menu_class’ => ‘page-menu’, ‘theme_location’ => ‘secondary’, ‘depth’ => 0, ‘fallback_cb’ => ” ) ); ?>
</div>
<?php /* End lower page menu */ ?>

To:

<?php /* Start add our second page menu */ ?>
<div id=”access” role=”navigation”>
<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘secondary’, ‘fallback_cb’ => ” ) ); ?>
</div>
<?php /* End lower page menu */ ?>

WordPress 3.0.4 – Critical Security Update!

Version 3.0.4 of WordPress, available immediately through the update page in your dashboard or for download here, is a very important update to apply to your sites as soon as possible because it fixes a core security bug in our HTML sanitation library, called KSES. I would rate this release as “critical.”

I realize an update during the holidays is no fun, but this one is worth putting down the eggnog for. In the spirit of the holidays, consider helping your friends as well.

If you are a security researcher, we’d appreciate you taking a look over this changeset as well to review our update. We’ve given it a lot of thought and review but since this is so core we want as many brains on it as possible. Thanks to Mauro Gentile and Jon Cave (duck_) who discovered and alerted us to these XSS vulnerabilities first.

Original post: http://wordpress.org/news/2010/12/3-0-4-update/

WordPress Mobile-friendly Themes & Plugins

By Ryan Imel on WPCandy.com
11 themes and plugins that create mobile friendly WordPress sites

TubePress – How to Fix Your Vimeo Gallery (and why it’s broken)

Problem: The TubePress plugin I use for displaying Vimeo videos on my WordPress site is broken.

Solution: http://tubepress.org/2010/11/how-to-fix-your-vimeo-gallery-and-why-its-broken/ This worked for me.

WordPress – Custom Category Template for Advanced Newspaper Theme

Overview: Custom Sidebar inside a custom Category template.

Problem: Client wants an ad to be placed in the sidebar of a specific Category (Wine of the Week). WP Advanced Newspaper theme doesn’t have a category.php file that I can alter.

Solution: Create a custom Category template using the archive.php file, and create a custom Sidebar to be displayed in this custom Category template.

Three files will be involved:

  1. category-wine-of-the-week.php (a Category template based on archive.php)
  2. innerWideSidebar-WineOfTheWeek.php (which was created based on innerWideSidebar.php)
  3. includes/register-widget-zones.php (to make the sidebar widget-able)

There are more details than this, but this is my current log.

LIVE EXAMPLE: http://www.placercountyonline.com/category/wine-of-the-week/

WordPress: Remove Page Title from Static Front Page Only

Problem: Site is set up with a static front page (Theme: TwentyTen 1.1), but the static front page still has the page title on it – which is kinda ugly for the home page. I also want to maintain the page title on all of the remaining inside pages.

Solution:

  1. Open page.php (Theme: TwentyTen 1.1)
  2. Remove line 24: <h2><?php the_title(); ?></h2>

WordPress: 3.0.1
Theme: TwentyTen 1.1

Original reference site (but info is out-dated): http://www.wordpressmax.com/wordpress-guide/remove-wordpress-page-title

Custom WordPress Case Study: Child Theme Edits – Plato’s Survey

Custom WordPress - Plato's SurveyVisit Plato’s Survey.

Overview: Custom WordPress site with shopping cart to sell marketing materials and Web-based surveys. Visitors will fill out survey forms, while franchise owners can order business cards, loyalty cards and customer survey campaigns.

Process: Utilized & customized the WordPress Thematic Feature Site child theme for Thematic. Integrated shopping cart, slide show, image gallery, advertising and surveys:

  • Integrated WP e-Commerce shopping cart
  • Customized shopping cart to include Image Gallery, as well as item & quantity variations
  • Customized Home page PHP code to accommodate SlideDeck slide show
  • Added logo to background
  • Integrated customer surveys
  • Integrated Google AdSense ads
  • Custom templates for sidebar and non-sidebar page layout
  • Custom WordPress pages
  • Set up contact form

WordPress plugins used:

  • Advertising Manager
  • cforms (contact form)
  • Display widgets
  • Insere Iframe
  • NextGEN Gallery
  • NextGEN Galleryview
  • Per Page Sidebars
  • SlideDeck
  • WP-DBManager
  • WP e-Commerce
  • WP Security Scan

Software used:

  • WordPress for framework
  • Illustrator for custom graphics
  • Dreamweaver for editing PHP
  • Dashcode for custom CSS

WordPress: Upgrading to cforms (contact form) v11.6

UPDATE: upgrading to cforms v11.6.1

Looking to display different forms on different pages/sidebars, instead of the same form on different pages/sidebars. Still need to figure out how to actually do it.