Converting a theme-spacific page template
-
The page template below was specifically designed for Weaver Theme. I’m trying to change themes to 2014 and would like to use this same template, but it’s Weaver Specific. I could use some help making this “generic” if you will to be able to use it with other themes if possible. URL https://www.NationalChristianChamber.org/directory which on the surface looks fine but the adjustments I had to make are making the rest of the page hinky (i.e. top directory flutter and page offset problems). Any help is appreciated.
Secondly, I’m also having problems with that site’s layout on Mobile devices. iPad is fine, iPhone is off.
Weaver Template Code:
[ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]
<?php /** * Template Name: Directory Category */ ?> <?php get_header(); ?> <div id="container" class="container-index-loop"> <?php weaver_put_wvr_widgetarea('sitewide-top-widget-area','ttw-site-top-widget'); weaver_put_wvr_widgetarea('top-widget-area','ttw-top-widget','ttw_hide_widg_posts'); weaver_put_perpage_widgetarea(); ?> <div id="content" role="main"> <h1 class="entry-title"><?php the_title();?></h1> <div class="add-directory"><a href="https://www.nationalchristianchamber.org/directory?page_id=5">Add Your Company</a></div> <div id="dir_cat"><?php $args = array( 'show_option_all' => '', 'orderby' => 'name', 'order' => 'ASC', 'style' => 'list', 'show_count' => 0, 'hide_empty' => 0, 'use_desc_for_title' => 1, 'child_of' => 0, 'feed' => '', 'feed_type' => '', 'feed_image' => '', 'exclude' => '1,70', 'exclude_tree' => '', 'include' => '', 'hierarchical' => 1, 'title_li' => __( ' ' ), 'show_option_none' => __('No categories'), 'number' => null, 'echo' => 1, 'depth' => 0, 'current_category' => 0, 'pad_counts' => 0, 'taxonomy' => 'category', 'walker' => null ); ?> <?php wp_list_categories( $args ); ?> <br style="clear:both" /> </div> </div><!-- #content --> <?php weaver_put_wvr_widgetarea('bottom-widget-area','ttw-bot-widget','ttw_hide_widg_posts'); ?> <?php weaver_put_wvr_widgetarea('sitewide-bottom-widget-area','ttw-site-bot-widget'); ?> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>
- The topic ‘Converting a theme-spacific page template’ is closed to new replies.