Daniel Bandi's Profile
Layers User
26 points

Questions
1

Answers
4

  • Layers User Asked on August 27, 2015 in Troubleshooting.

    That sucks bro. I’m not sure how you can retain widgets when you switch themes, but Layers has an option that ensures that your widgets are never lost, as long as you are using a Layers child theme. First you will need to export your template – https://docs.layerswp.com/doc/how-to-export-builder-page-layouts/. Then there are default settings that you need to past on your Layers child theme functions.php. For instance if you used 4  widget areas on your footer widget then this is what you need to paste on your functions.php so that it will be set up by default after you export your layout:

    add_filter( ‘layers_customizer_control_defaults’, ‘LAYERSCHILDTHEMENAME_customizer_defaults’ );

    function LAYERSCHILDTHEMENAME_customizer_defaults( $defaults ){

    $defaults = array(
    ‘footer-sidebar-count’ => ‘4’,’
    );

    return $defaults;
    }

    This code focuses on your footer widgets and they will be set to 4 by default. Oh yes! I know this seems massively confusing to a beginner, but trust me it’s a piece of cake, just let us know if you get lost. You can follow the rest of the tutorial here – https://docs.layerswp.com/reference/layers_customizer_defaults/

    • 4485 views
    • 2 answers
    • 1 votes
  • Layers User Asked on August 27, 2015 in General Questions.

    Most of what can be achieved with layers is really basic at the moment, I’m afraid to admit, but as more developers and designers get involved and start experimenting with building custom page templates, then more things will be possible, but at the moment I don’t think you will find any child themes resembling that type of functionality at the moment. But trust me, there’s some talented developer out there working on it right now ;). Layers has massive potential for developers and designers everywhere, making it open-source was the best thing Obox could ever do for designers and developers like me. So watch this space!

    • 2950 views
    • 2 answers
    • 0 votes
  • Layers User Asked on August 27, 2015 in Customization.

    There’s also animate.css and wow.js which you can add on your child theme’s functions.php using this code if you don’t want to buy extensions:

    //* Enqueue Animate.CSS and WOW.js
    add_action( ‘wp_enqueue_scripts’, ‘sk_enqueue_scripts’ );
    function sk_enqueue_scripts() {

    wp_enqueue_style( ‘animate’, get_stylesheet_directory_uri() . ‘/assets/css/animate.min.css’ );

    wp_enqueue_script( ‘wow’, get_stylesheet_directory_uri() . ‘/assets/js/wow.min.js’, array(), ”, true );

    Then go to your customiser and on advanced settings put the custom classes you want for your transition. You can find the classes for each transition here https://daneden.github.io/animate.css/

    You just simply add the widget, then go to Advanced – Custom Class(es) and add the code like this –

    wow slideInUp

    remember to download and add animate.min.css and wow.min,js files in your child theme’s assets folder.

    • 6409 views
    • 3 answers
    • 0 votes
  • Layers User Asked on August 27, 2015 in Troubleshooting.

    I edited the wp-config.php and added these lines, it worked for me:

    define('WP_DEBUG', false);
    ini_set( 'display_errors', 0 );
    • 6841 views
    • 2 answers
    • 0 votes