• 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(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • I am sure that the Weaver templates are copyrighted.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Copyright or not, Weaver is a free theme, released under the GPL, and anybody has the right to modify and reuse pieces of it.

    To adjust that template, you would need to remove the weaver specific pieces at the top and bottom of the theme. Other than those widget areas, the rest of the template looks pretty normal and should work without much trouble. The rest is just a matter of styling, I expect.

    There you go! Thanks Otto!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Converting a theme-spacific page template’ is closed to new replies.