For the most part, Social Deals templates will integrate nicely with most WordPress themes. Where you may run into problems is when the default Social Deals content wrappers do not match your chosen themes. This will manifest itself by breaking your layout on Social Deals pages and shifting your sidebars into incorrect positions.

This problem can potentially affect the deals page, the single deal page and the taxonomy pages (categories and tags) because Social Deals uses templates of its own to display these pages (and its impossible for Social Deals to know exactly what markup your theme uses). Other “pages” (checkout, cart, account) are not affected because they use your theme’s page.php template.

There are two ways to resolve this; using hooks (for advanced users/developers) or using our catch-all deals_content() function inside your theme.

Using deals_content()

This solution allows you to create a new template page within your theme which will be used for all Social Deals taxonomy and post type displays. While an easy catch-all solution, it does have a draw back in that this template will be used for all Deals taxonomies (deals categories etc) and post types (deals archives, single deal pages). Developers are encouraged to use the hooks instead.

To set up this template page perform the following steps:

Duplicate page.php

Duplicate your theme’s page.php file, and name it deals-engine.php. This file should be found like this: wp-content/themes/YOURTHEME/deals-engine.php.

Edit your page (deals-engine.php)

Open up your newly created deals-engine.php in a text editor (or the editor of your choice).

Replace the loop

Next you need to find the loop (see The_Loop). The loop usually starts with a:

<?php if ( have_posts() ) :


and usually ends with: 

<?php endif; ?>


This varies between themes. Once you have found it, delete it. In its place put:


<?php deals_content(); ?>

This will make it use social deals loop instead. Save the file. You’re done.

Please note: when creating deals-engine.php in your theme’s folder, you won’t be able to override the deals-engine/archive-deal.php custom template as deals-engine.php has the priority over archive-deal.php. This is intended to prevent display issues.

Declare Social Deals support

Once you’re happy that your theme fully supports Social Deals, you should declare it in the code to hide the “Your theme does not declare Social Deals Engine support” message. To do so you should add the following to your theme support function;

add_theme_support( 'wpsdeals' );


Use filter support

You can also use filter to hide support message. Add 'wps_deals_get_core_supported_themes' filter in your theme as follow:

add_filter( 'wps_deals_get_core_supported_themes', 'deals_add_theme_support' );
function deals_add_theme_support( $themes_array = array() ) {
	$themes_array[] = 'Yourthemename';
	return $themes_array;