• Resolved urbannerd

    (@urbannerd)


    Hello,

    So I am currently working on youbetheadventure.com and I am trying
    to add an extra div to the weaver ii theme. I would like it to sit right under the shopping cart div so I can add some social media links in there.

    I have a child theme, and I copied over the page.php file but I cant figure out where to add the code so it sits in that specific area.

    Heres my code:

    <?php echo '<div class="social"><img src="https://youbetheadventure.com/wp-content/uploads/2014/10/twitter-e1412707495819.png">
    </div>'; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter urbannerd

    (@urbannerd)

    Heres the page.php code

    <?php
    if ( !defined('ABSPATH')) exit; // Exit if accessed directly
    /**
     * Standard page output (Default template)
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Weaver II
     * @since Weaver II 1.0
     *
     *  	>>>> DO NOT EDIT THIS FILE <<<<
     *
     * Warning! DO NOT EDIT THIS FILE, or any other theme file! If you edit ANY theme
     * file, all your changes will be LOST when you update the theme to a newer version.
     * Instead, if you need to change theme functionality, CREATE A CHILD THEME!
     *
     *	>>>> DO NOT EDIT THIS FILE <<<<
     */
    
    weaverii_get_header('page');
    if (weaverii_getopt('wii_infobar_location') == 'top') get_template_part('infobar');
    weaverii_inject_area('premain');
    echo("\t<div id=\"main\">\n");
    weaverii_trace_template(__FILE__);
    weaverii_get_sidebar_left('page');
    ?>
    		<div id="container_wrap"<?php weaverii_get_page_class('page', 'container-page'); ?>>
    <?php
            if (weaverii_getopt('wii_infobar_location') == 'content')
                get_template_part('infobar');
    		weaverii_inject_area('precontent'); ?>
    		<div id="container">
    <?php		weaverii_get_sidebar_top('page'); ?>
    
    			<div id="content" role="main">
    <?php
                while ( have_posts() ) {
    				weaverii_post_count_clear(); the_post();
    
    				get_template_part( 'content', 'page' );
    
    				comments_template( '', true );
    			}
    ?>
    
    			</div><!-- #content -->
    <?php		weaverii_get_sidebar_bottom('page'); ?>
    
    		</div><!-- #container -->
    		</div><!-- #container_wrap -->
    
    <?php	weaverii_get_sidebar_right('page'); ?>
    <?php   weaverii_get_footer('page');
    ?>
    Thread Starter urbannerd

    (@urbannerd)

    Nevermind, I figured it out, had to copy the sidebar.php file and add it where the sidebar area ends.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Extra Div’ is closed to new replies.