Theming Exchange - Customize Ghost and Product Pages Output

From IThemes Codex
Revision as of 11:35, September 12, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Exchange Pages

Exchange pages are pages "created" on the fly by Exchange but do not exist in the standard pages section of the WordPress admin area. You can see a list of these pages in Exchange --> Settings --> Pages. Some of the pages have the option to be disabled or replaced by a standard WordPress page/shortcode.

In order to customize the content of Exchange Pages completely, we recommend creating a file named page.php, adding it to the exchange directory (/exchange/page.php) in your theme, then adding the following code:

get_header();

while ( have_posts() ) : the_post();
    the_content();
endwhile;

get_sidebar();
get_footer();

Of course this example is for a standard WordPress theme. If you are using a theme that uses a different method of rendering the loop (e.g. Builder) you will need to place the necessary code in exchange/page.php.

For a full list of the Exchange Pages visit Exchange » Settings » Pages in your WordPress admin area.

Products

In order to customize the content of single product pages, we recommend creating a file named product.php, adding it to the exchange directory (exchange/product.php) in your theme, then add the following code:

get_header();

it_exchange_get_template_part( 'content', 'product' );

get_sidebar();
get_footer();

Again, you may need to add different code depending on your theme.



Previous: Getting Started.

Next: Adding Custom Templates.

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox