• Resolved starlinggirl

    (@starlinggirl)


    Hi!

    Everything was going great, but now the links from my slider images to their appropriate pages no longer work. I have relinked them in the media file several times, still nothing. Thoughts?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try going to Dashboard>Settings>Permalinks.

    Choose the option you want (even if you already have it) and Save.

    This will reset your permalinks and hopefully fix you.

    Thread Starter starlinggirl

    (@starlinggirl)

    Thank, Rdell! I wish that had worked, but sadly, it did not. I wanted the images in my image gallery to link to a page on my site, see here: http://www.seattlemetalsguild.org/membership/member-portfolios/ which did not seem to be a function the image gallery had (unless I totally missed it!), so I downloaded a plugin to allow me to do that. I thought this might be the conflict, yet when the plugin is deactivated, the functionality of my slider links does not return. The only other new plugin is nikeo’s FPU. I also deactivated that and still no joy. I have removed the images from my slider, re-added them, reset permalinks, etc. Nothing. Do I need to completely delete the plugins? If I cannot use the image-page link plugin, is there another way to accomplish this for my image gallery?

    I really love this theme, but these small knick-knacky functionality things are killing me!

    Thank you!!!!

    The symptoms you describe could occur if you have a slider without links and another with links, but in Appearance > Customize > Front page, you have told Customizr to load the slider without links.

    A possibility worth exploring.

    Thread Starter starlinggirl

    (@starlinggirl)

    Electric Feet –

    I only have the one slider on my site for my home page and it is configured correctly. Just to make sure, I deleted all of the images and the slider, re-uploaded them, created a new slider with new links and still no joy! I also reset the slider choice in Appearance> Customize> Front Page. Thoughts? Really need this to work!!! http://www.seattlemetalsguild.org

    Thanks!

    Slider links without action buttons don’t work.
    If you don’t want to use action buttons then consider this:
    http://www.themesandco.com/snippet/linking-the-whole-slides-picture-to-a-pagepost-in-customizr/

    Since you don’t use the caption, you don’t need the javascript part.

    Also, if you use that snippet, I suggest you to disable this:
    Appearance -> Customize -> Responsive Settings -> Enable/disable slider’s slides centering on any devices

    ’cause it will not properly work in that case.

    Thread Starter starlinggirl

    (@starlinggirl)

    So I should just use this then:

    add_action('wp_head' , 'link_whole_slide');
    function link_whole_slide() {
       //sets the slider image link
       add_filter('tc_slide_background' , 'my_slide_link', 10, 2);
        function my_slide_link( $slide_image , $slide_link) {
            //sets the slider image link
            return sprintf('<a href="%1$s">%2$s</a>',
                $slide_link,
                $slide_image
            );
        }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Also, the last time I put something into my child theme function.php and removed it (returned to <?php) I got the WSOD! So I want to make sure I have this right!

    Thanks!

    Probably you made some error in that case, you’re building a web-site you have to take a deep breath and predispose yourself to the fact that you can make mistakes and have the WSOD. Anyway this so dreaded WSOD is something that appears also if you missed a semicolon somewhere, it’s nothing special, and appears because you have (reasonably when you’re not in development mode) the debug disabled. So the next time you see this WSOD open in local your wp-config.php change this line:

    define('WP_DEBUG', false);

    to

    define('WP_DEBUG', true);

    and upload it. Then you’ll see what kind of error you made and you can correct it easily.
    Anyway the better solution would be testing changes in local.. but whatever.
    Said that, no you don’t have to put that code in your child-theme, ’cause you missed a closing brace, and then you’ll have the WSOD. This is the code:

    add_action('wp_head' , 'link_whole_slide');
    function link_whole_slide() {
       //sets the slider image link
       add_filter('tc_slide_background' , 'my_slide_link', 10, 2);
        function my_slide_link( $slide_image , $slide_link) {
            //sets the slider image link
            return sprintf('<a href="%1$s">%2$s</a>',
                $slide_link,
                $slide_image
            );
        }
    }

    Thread Starter starlinggirl

    (@starlinggirl)

    Perfect!!! That worked a treat!

    Thank you!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Slider Page Link not working’ is closed to new replies.