Standy theme, image slider url links not working
-
Hi,
In the Standy wordpress theme, as in any other theme, you can configure your slider images to link to another url. Problem is, when I configure it through wordpress, it doesn’t work. Was told I have to edit the php file directly, and I honestly don’t know php code (guess I better learn fast). I have my assumptions on what I should do with this code, but can someone please direct me to the correct section that I should edit before I mess it up and waste more time…! There are 4 image sliders total with the last 2 needing url links. Thank you!<script type="text/javascript"> (function ($) { //slider $(window).load(function() { $('#camera_wrap_1').camera({ thumbnails: false, loader: 'bar', loaderColor : '#f00', loaderBgColor: '#fff', loaderStroke: 2, height: '40%', navigation: <?php cyberspacebuilder_option('camera_navigation', 'true', TRUE); ?>, playPause: <?php cyberspacebuilder_option('camera_navigation', 'true', TRUE); ?>, pagination: <?php cyberspacebuilder_option('camera_pagination', 'false', TRUE); ?>, hover: <?php cyberspacebuilder_option('camera_hover', 'true', TRUE); ?> }); }); })(jQuery); </script> <?php if ( $slider_home = cyberspacebuilder_option('camera_image') ) { ?> <div class="camera_wrap camera_azure_skin" id="camera_wrap_1"> <?php foreach ( $slider_home as $id => $slide ) { $slide_big = cyberspacebuilder_timthumb($slide['url'], 980, 392, '', false); $slide_thumb = cyberspacebuilder_timthumb($slide['url'], 150, 150, '', false); ?> <div data-thumb="<?php echo $slide_thumb; ?>" data-src="<?php echo $slide_big; ?>"> <?php if ( $slide['title'] || $slide['description'] ) { echo '<div class="camera_caption fadeFromRight">'; if ( $slide['title'] ) { $slide_title = !empty($slide['link']) ? '<a href="'. $slide['link'] .'">'. $slide['title'] .'</a>' : $slide['title']; echo '<div class="slide-title">'. $slide_title .'</div>'; } if ( $slide['description'] ) { echo '<p class="slide-description">'. $slide['description'] .'</p>'; } echo '</div>'; } ?> </div> <?php } ?> </div> <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Standy theme, image slider url links not working’ is closed to new replies.