• keljacobson

    (@keljacobson)


    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!

    https://www.ads-software.com/extend/themes/pink-touch-2/

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

    Mike

    (@hello-there)

    Hello, I have added right sidebar for my Pink Touch 2 theme. First of all check this out https://codex.www.ads-software.com/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 https://codex.www.ads-software.com/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.