WordPress.org

Ready to get started?Download WordPress

Forums

Hero
[resolved] hero-wordpress-theme- (14 posts)

  1. hcaleon
    Member
    Posted 1 year ago #

    Hello guys. Will kindly someone help me out.
    I'm currently using the Hero WordPress theme http://wordpress.org/extend/themes/hero on my website and I'm just wondering if someone knows how to remove the black box slider on a hero slider and adding a link to the image slider directly.

    Its more like, I want to remove the black box link on hero slider and If I can just apply the link directly to the image so the user can just click the image right away and direct them to the link page.

    Please and thanks.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Do you have a section in the dashboard named, "Custom CSS", "Custom Styles" or "Jetpack", or do you have a Child Theme?

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    [re-opened
    @hcaleon was asked to post here in the theme's section.

    I am closing the other topic instead.]

    - @hcaleon
    can you post alink to your site to illustrate the problem?

  5. hcaleon
    Member
    Posted 1 year ago #

    http://famba-il.org

    Its more like, I want to remove the black box link on hero slider and If I can just apply the link directly to the image so the user can just click the image right away and direct them to the link page. Thanks

  6. hcaleon
    Member
    Posted 1 year ago #

    @alchymyth - I like the image slider to be clickable. Thanks

    heres the site http://famba-il.org

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Oops, sorry sorry, my bad - clearly too early and/or not enough coffee yet - thanks alchymyth!

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    That's okay, WPyogi. Confusion is a common in duplicated threads.

  9. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    what is your code in front-page.php at the moment?

    (the slider section ...)

    try this:

    <!--slideshow-->
    
    	<div id="slider" class="nivoSlider">
    
    <?php for ($i = 1; $i <= 2; $i++) { ?>
    
    			<a href='<?php echo of_get_option('slider_link'.$i); ?>'> <img src="<?php if(of_get_option('slider_image'.$i) != NULL){ echo of_get_option('slider_image'.$i);} else echo get_template_directory_uri() . '/images/slide'.$i.'.png' ?>" alt="<?php echo of_get_option('slider_head'.$i); ?>" /></a>
    
    			<?php } ?>
    
    		</div> <!--slideshow end-->
  10. hcaleon
    Member
    Posted 1 year ago #

    OMG! thanks so much! its working! you're a life saver.! I really appreciated it.

  11. hcaleon
    Member
    Posted 1 year ago #

    @alchymyth i have 3 images.. the first 2 images links working and the third one is not.
    just wondering if that coding work for 3 images in the slider? thanks

    heres the site http://famba-il.org

  12. hcaleon
    Member
    Posted 1 year ago #

    I fixed it . Thanks again!

  13. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    [edit: well done; maybe the part below might help somebody else in the future...]

    how did you manage to add a third image?

    I had to edit the following to have a theme option for the third slider image:

    did you edit front-page.php - this line - to change the number to 3:

    <?php for ($i = 1; $i <= 2; $i++) { ?>

    and options.php; duplicated this section and changed the number 2 to 3:

    $options[] = array( "name" => "Slider heading 2",
    						"desc" => "Heading for the slider.",
    						"id" => "slider_head2",
    						"std" => "",
    						"type" => "text");
    
    	$options[] = array( "name" => "Slider text 2",
    						"desc" => "Textarea description of slider.",
    						"id" => "slider_text2",
    						"std" => "",
    						"type" => "textarea");
    
    	$options[] = array( "name" => "Slider image 2",
    						"desc" => "963px x 350px exact. Upload your image for homepage slider.",
    						"id" => "slider_image2",
    						"type" => "upload");
    
    	$options[] = array( "name" => "Slider read more link",
    						"desc" => "Paste here the link of the page or post.",
    						"id" => "slider_link2",
    						"std" => "",
    						"type" => "text");
    	$options[] = array( "name" => "Slider heading 3",
    						"desc" => "Heading for the slider.",
    						"id" => "slider_head3",
    						"std" => "",
    						"type" => "text");
  14. hcaleon
    Member
    Posted 1 year ago #

    yes! thats what i did too. thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.