[Support request] Generate press child theme not working well with elementor.

Home Forums Support [Support request] Generate press child theme not working well with elementor.

Home Forums Support Generate press child theme not working well with elementor.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2195885
    Jef

    I’m using Generate Press as a theme and have a pro version. I’m also using elementor pro. I created a child theme of Generate press. I making different sections in elementor and every section needs a certain color scheme depending on its content. So I’ve been using custom css and giving these sections a class in elementor to determine the colors. I’m using elementor to create all the placement and layouting. So elementor creates the html, the sections, columns and does things like centering text, margins, paddings, etc… The colors are in my child theme stylesheet however.

    The problem I have is that elementor isn’t doing this layouting correctly. What I see in the elementor editor isn’t translating to the frontend anymore. If I add padding or margins, they don’t translate to the frontend. I’ve added spacers, they aren’t shown in the frontend either. Centering titles isn’t working either.

    When I us the official Generatepress theme (not the child theme) or another theme it works. With my generatepress child theme however it doesn’t work.

    I’ve tried different browsers and computers. There’s no caching on the hosting, nor do I have a plugin for that.

    Can you help me?

    #2195892
    David
    Staff
    Customer Support

    Hi there,

    what else do you have in the Child Theme ? Or there any functions ?

    Can you share a link to a page where i can see the problem ?

    #2196316
    Jef

    Well it’s all behind a password at the moment. Don’t want to publicly share that. Here’s my code. Besides this I’ve made 2 CPT’s. That code I’ve used on other sites without any problems.

    <?php
    if ( ! function_exists( ‘clientname_setup’ ) ) :
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which
    * runs before the init hook. The init hook is too late for some features, such
    * as indicating support for post thumbnails.
    */
    function clientname_setup() {
    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you’re building a theme based on Evergreen Content Poster, use a find and replace
    * to change ‘clientname’ to the name of your theme in all the template files.
    */
    load_child_theme_textdomain( ‘clientname’, get_template_directory() . ‘/languages’ );

    // Add default posts and comments RSS feed links to head.
    add_theme_support( ‘automatic-feed-links’ );

    /*
    * Let WordPress manage the document title.
    * By adding theme support, we declare that this theme does not use a
    * hard-coded <title> tag in the document head, and expect WordPress to
    * provide it for us.
    */
    add_theme_support( ‘title-tag’ );

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
    */
    add_theme_support( ‘post-thumbnails’ );

    /*
    * Switch default core markup for search form, comment form, and comments
    * to output valid HTML5.
    */
    add_theme_support( ‘html5’, array(
    ‘search-form’,
    ‘comment-form’,
    ‘comment-list’,
    ‘gallery’,
    ‘caption’,
    ) );

    // Add theme support for selective refresh for widgets.
    add_theme_support( ‘customize-selective-refresh-widgets’ );
    }
    endif;

    add_action( ‘after_setup_theme’, ‘clientname_setup’ );

    #2196653
    David
    Staff
    Customer Support

    Is it possible to see a problem page on the site?
    You can share URLs and other sensitive information in the Private Information field, only the GP admin team can see its contents.

    #2196878
    Jef

    there is no error message.
    front vs backend is visually different and it’s caused by the child theme (which is basically empty)
    I will share my login information and you can see for yourself

    #2196926
    David
    Staff
    Customer Support

    Does it work if you empty out the Child Theme functions.php ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.