WordPress.org

Forums

Pink Touch 2
Theme: Pink Touch 2/How to create Right sidebar? (4 posts)

  1. keljacobson
    Member
    Posted 3 years ago #

    I woud like to create a Right sidebar in the theme (Pink Touch 2) so that I can add google advertisements on the right side rather than in the footer. I have tried adding the sidebar plugins but they don't seem to be working for me. Could any one please tell me how to add a right sidebar?

    Thank you!

    http://wordpress.org/extend/themes/pink-touch-2/

  2. psypol
    Member
    Posted 3 years ago #

    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

  3. Mike
    Member
    Posted 3 years ago #

    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(); ?>
  4. latha shreedhar
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic