Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
Oh yes, just remove the codes on line 2:
if (is_home())Admin
Add this code to your child theme’s functions.php file:
function graphene_display_slider(){
if (is_home())
graphene_slider();
}
function graphene_scrollable() {
$interval = (get_option('slider_speed')) ? get_option('slider_speed') : 7000;
?>
<!-- Scrollable -->
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function($){
$(function() {
// initialize scrollable
$("#slider_root").scrollable({circular: true}).navigator({
navi: ".slider_nav",
naviItem: 'a',
activeClass: 'active'
}).autoscroll({interval: <?php echo $interval; ?>});
});
});
//]]>
</script>
<!-- #Scrollable -->
<?php
}Admin
Use CSS absolute positioning.
Admin
On line 10 and 11, delete these two lines:
?>
<?phpOn line 16, delete this line:
?>At the end of the file, add this line:
?>Admin
Copy and paste your entire functions.php file here.
Admin
Try adding this code to your child theme’s functions.php file:
function graphene_scrollable() {
$interval = (get_option('slider_speed')) ? get_option('slider_speed') : 7000;
?>
<!-- Scrollable -->
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function($){
$(function() {
// initialize scrollable
$("#slider_root").scrollable({circular: true}).navigator({
navi: ".slider_nav",
naviItem: 'a',
activeClass: 'active'
}).autoscroll({interval: <?php echo $interval; ?>});
});
});
//]]>
</script>
<!-- #Scrollable -->
<?php
}Admin
Since you’re using an older version of the theme, you’d need to use child theme to safely modify the colour without losing the modification the next time you update.
Insert this code into your child theme’s style.css file:
#previous, #previous a, #previous a:visited, #next-post, #next-post a, #next-post a:visited {
color: #929292;
}Change the colour value to whatever colour you want.
Admin
Dude..how can I inspect the codes if you disabled the slider?
Admin
OK, I see what you wanna do. What’s the URL to your website?
Admin
Yes, I’m aware of this and has been fixed. Will be available in the next update.
