-
AuthorPosts
-
July 9, 2015 at 7:44 pm #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
garyJuly 10, 2015 at 2:14 pm #471446Hi gharding!
I suggest to ask layerslider support if this is possible: http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/1362246/comments
Cheers!
AndyJuly 10, 2015 at 2:16 pm #471447Hi gharding!
Try removing line 132 in the /enfold/css/print.css stylesheet.
.avia-layerslider, .avia-fullwidth-slider{ display: none; }
Cheers!
ElliottJuly 10, 2015 at 3:21 pm #471502Elliott, 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
July 10, 2015 at 3:25 pm #471508Hi!
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,
JosueJuly 11, 2015 at 4:22 am #471794does 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 );July 11, 2015 at 4:24 am #471795Yes, 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,
JosueJuly 11, 2015 at 4:30 am #471799ok, that worked. thanks!!
gJuly 11, 2015 at 4:31 am #471800You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.