WordPress.org

Support

Support » How-To and Troubleshooting » Theme: Pink Touch 2/How to create Right sidebar?

Theme: Pink Touch 2/How to create Right sidebar?

Viewing 3 replies - 1 through 3 (of 3 total)
  • hello

    i have the exact same problem as keljacobson
    i don’t host a WPblog myslft but use regular online DashBoard
    is it possible to add a SIDEBAR for widgets

    it would be awesome cause i LOVE this theme but too bad
    it accepts only footer widgets

    Hello, I have added right sidebar for my Pink Touch 2 theme. First of all check this out http://codex.wordpress.org/Child_Themes and then you can use code below.

    In pink-touch-2-child folder: aside.php page.php style.css

    style.css:

    /*
    Theme Name:     Yarmarka
    Theme URI:      http: //wedeal.ru/
    Description:    Дочерняя тема для Pink Touch 2
    Author:         ***
    Author URI:     ***
    Template:       pink-touch-2
    Version:        0.0.1
    */
    
    @import url('../pink-touch-2/style.css');
    
    * {
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    }
    
    #content {
    	width: 90%;
    	margin: auto;
    }
    
    .hentry {
    	width: 60%;
    	float: left;
    }
    
    aside {
    	width: 35%;
    	float: right;
    }
    
    #comments {
    	clear: both;
    }

    aside.php:

    <aside><p>Hello there</p></aside>

    page.php:

    <?php
    /**
     * @package WordPress
     * @subpackage Pink Touch 2
     */
    
    get_header(); ?>
    
    <?php the_post(); ?>
    
    <?php get_template_part( 'content' ); ?>
    
    <?php get_template_part( 'aside' ); ?>
    
    <?php comments_template( '', true ); ?>
    
    <?php get_footer(); ?>

    I tried with these code, and I followed the Instructions http://codex.wordpress.org/Child_Themes But it is not working to me.

    And I have no clarity about this class?

    aside {
    width: 35%;
    float: right;
    }

    Is “aside” A class or ID

    .aside or #aside?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme: Pink Touch 2/How to create Right sidebar?’ is closed to new replies.