Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #471100

    How can I get Layer Slider to print, too? If you compare what’s on my draft homepage http://50.87.248.198/~westpro1/dev/ to what prints, it’s barren without the layer slider.

    thank you
    gary

    #471446

    Hi gharding!

    I suggest to ask layerslider support if this is possible: http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/1362246/comments

    Cheers!
    Andy

    #471447

    Hi gharding!

    Try removing line 132 in the /enfold/css/print.css stylesheet.

    .avia-layerslider,
    .avia-fullwidth-slider{
      display: none;
    }

    Cheers!
    Elliott

    #471502

    Elliott, I use a child theme. will removing line 132 now from the style sheet effect me later after there are new versions of Enfold?

    thank you

    #471508

    Hi!

    You can put a custom print.css on your child theme directory and include it with this code in child functions.php

    function change_aviacss() {
       wp_dequeue_style( 'avia-print' );
       wp_enqueue_style( 'avia-print-child', get_stylesheet_directory_uri().'/css/print.css', array(), '1', 'print' );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviacss', 100 );

    Best regards,
    Josue

    #471794

    does this look right for the child functions.php? I know you can bring down a site if this isn’t right. the print.css file is in the root directory and not a css sub folder.

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    function change_aviacss() {
    wp_dequeue_style( ‘avia-print’ );
    wp_enqueue_style( ‘avia-print-child’, get_stylesheet_directory_uri().’print.css’, array(), ‘1’, ‘print’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘change_aviacss’, 100 );

    #471795

    Yes, it’s ok, just needed an extra “/”:

    function change_aviacss() {
    wp_dequeue_style( 'avia-print' );
    wp_enqueue_style( 'avia-print-child', get_stylesheet_directory_uri().'/print.css', array(), '1', 'print' );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviacss', 100 );

    Best regards,
    Josue

    #471799

    ok, that worked. thanks!!
    g

    #471800

    You are welcome, glad to help :)

    Regards,
    Josue

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