Forum Replies Created
-
AuthorPosts
-
Perfect… that did it. Strange that the other post suggests hacking the theme before modifying the child. Anyway, you’ve been very helpful. Best wishes to you. You can close this thread if you like – the issue is resolved on my end.
OK, after some additional fishing, problem solved. See posts:
https://kriesi.at/support/topic/layerslider-shortocode-disabled/#post-187266
https://kriesi.at/support/topic/layerslider-not-working-2/I purchased the standalone layerslider and disabled the functions.php line… working as expected. Not thrilled with spending another $17… but I”ve lost that much problem solving.
However, the links above call for commenting out the layerslider line in functions.php of the parent theme. That means, everytime I update, I have to correct this problem. How can I “unhook” that line in my child theme’s functions.php file so I don’t have to watch this carefully?
Thanks in Advance…
This reply has been marked as private.This reply has been marked as private.Increased memory to 128M – No Dice.
Disabled all plugins – No Dice.Any chance other items in functions.php (child) are causing problems?
<?php add_filter('avf_blog_style','avia_change_archive_blog_layout', 10, 2); function avia_change_archive_blog_layout($layout, $context){ if($context == 'archive') $layout = 'blog-grid'; return $layout; } add_filter('the_excerpt', 'do_shortcode'); function emj_header_func() { echo do_shortcode('[layerslider id="3"]'); } add_action('ava_after_main_menu', 'emj_header_func'); ?>
Do I need to add a filter regarding the shortcode?
Is it possible I have to call up the layerslider function prior to this function? (think it is already called elsewhere).
See next post for some private info.Thanks for your assistance.
Perfect. Thank you.
Got the HTML content in there and was successful putting a background picture and styling its position.
Can’t get the do_shortcode bit to work. Tried this… still got just the shortcode in square brackets outputted.function emj_header_func() { ?> <div id="emjheader"><?php echo do_shortcode('[layerslider id="3"]'); ?></div> <?php } add_action('ava_after_main_menu', 'emj_header_func');
Layer slider also provides an optional function:
<?php layerslider(3) ?>
But when I called it via my function above, it outputted an error that it couldn’t find that function.Ideas?
-
AuthorPosts