Graphene Theme Slider on Every Page

These Adverts help to pay for this site. ai2

To add the Graphene slider into every page and post within the Graphene theme, the following code is placed into a functions.php file in the child theme.

These Adverts help to pay for this site ai6.

function graphene_display_slider(){
add_action(‘wp_footer’, ‘graphene_scrollable’);
function custom_enqueue_scripts(){
if ( ! is_admin() ) { // Front-end only
wp_enqueue_script( ‘graphene-jquery-tools’ ); // jQuery Tools, required for slider
add_action( ‘wp_enqueue_scripts’, ‘custom_enqueue_scripts’ );

The  <?php and ?> codes at the start and end, are only required if this is the only code in the file

34.1 - 571,796
Scroll down for Comments
0 0 vote
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments