Topic Resolution: Resolved
  • Closed
  • Bob Prentice
    Spectator
    April 29, 2015 at 12:07 pm #17053

    Bit of a strange issue (for me anyway). I have lost the responsiveness when I use an Alora Child theme I have added. Everything else is OK as far as the formatting etc. is concerned so I believe it is picking the css up correctly.

    Alora Theme Correct

    Alora Child Theme Incorrect

    9Sorry the images don’t seem to want to show they are Correct and Incorrect.

    You will notice tin the correct image the columns are placed one underneath another in the smaller resolution. In the incorrect version the 3 columns stay side by side and just shrink. The only differentce between the two images in the theme. In the first I use the Alora Theme, in the second the child theme.

    I only have two files in my Child theme the function.php and style.css

    style.css
    /*
    Theme Name: Alora Child Theme
    Description: This is a child theme for Alora
    Author: Splatcat
    Author URI: http://www.test.splatcat.net/
    Template: alora
    Version: 1.0
    */

    function.php
    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
    get_stylesheet_directory_uri() . '/style.css',
    array('parent-style')
    );
    }

    function add_query_vars_filter( $vars ){
    $vars[] = "pagezk";
    $vars[] = "cat";
    $vars[] = "url_120";
    return $vars;
    }
    add_filter( 'query_vars', 'add_query_vars_filter' );

    I assume I have done something wrong but whatever it is only seems to affect the responsiveness, everything else seems to be working correctly. I would be grateful for any insight into how to resolve this.

    Tank you for your time.

    Roman
    Spectator
    Posts: 3147
    April 29, 2015 at 9:20 pm #17071

    can you try a plugin for that creation? https://wordpress.org/plugins/child-theme-configurator/

    Bob Prentice
    Spectator
    Posts: 6
    April 29, 2015 at 11:42 pm #17094

    Gave that a try… made a brand new child theme… same issue.

    The css handling is set to “Enqueue both parent and child stylesheets” which seems to worl for everything else.

    There is an option to “Parse additional stylesheets” but I haven’t touch that as I wouldn’t know where to begin.

    Roman
    Spectator
    Posts: 3147
    April 30, 2015 at 9:43 am #17097

    be sure to have included this css in your child theme which takes care about the responsiveness css/media.css

    Bob Prentice
    Spectator
    Posts: 6
    April 30, 2015 at 12:47 pm #17107

    Sorry have just tried that and it made no difference.

    First of all I tried ticking it in the “Parse additional stylesheets” list and that had no effect. Then I actually put a copy of it in the Child Theme folder and that still made no difference.

    I have doubled checked and the main Alora theme is still working properly. I can’t think what I’m doing wrong with the child theme. ( I’m assuming it’s me as no one else is reporting the same issue ).

    Thanks for your help so far.

    Anonymous
    Inactive
    Posts: 49
    April 30, 2015 at 3:06 pm #17108

    Give us your website url in Private Reply.

    Bob Prentice
    Spectator
    Posts: 6
    April 30, 2015 at 11:29 pm #17125
    This reply has been marked as private.
    Roman
    Spectator
    Posts: 3147
    May 1, 2015 at 9:46 am #17137

    you are using an older version of alora 2.5.0, the latest is 2.7.0, please update it then we can investigate further

    Bob Prentice
    Spectator
    Posts: 6
    May 1, 2015 at 3:01 pm #17141

    I think that may have solved it. Will do a bit more testing but thank you for the help.

    Roman
    Spectator
    Posts: 3147
    May 1, 2015 at 7:34 pm #17145

    update us once you think it’s fine

    Bob Prentice
    Spectator
    Posts: 6
    May 6, 2015 at 11:58 pm #17327

    Thank you, it has been resolved. Have new issue but will start a new thread if necessary. Please mark this as resolved.