• Resolved kallinen

    (@kallinen)


    I want to have text ect. on my category page, so i´ve use the widget to show categories. But when i go in to a category to see a video, “all Categories” takes me to the original category page. Is there any way to change the link?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Kindly try adding the following code to the bottom of your theme’s functions.php file,

    function aiovg_custom_back_to_categories_link( $link ) {
        $link = 'ADD_YOUR_CUSTOM_CATEGORY_PAGE_URL';
        return $link;
    }
    add_filter( 'aiovg_back_to_categories_link', 'aiovg_custom_back_to_categories_link' );

    Note: You must replace the word ‘ADD_YOUR_CUSTOM_CATEGORY_PAGE_URL’ in the above code with your custom category page URL.

    Hope this solved your issue!

    Thread Starter kallinen

    (@kallinen)

    Hi. Thanks. That caused my site to go in a fatal error. Do you have any other suggestion?

    Thread Starter kallinen

    (@kallinen)

    Ah, i had to finish the code you sent me. Now i get this warning on the site i wanted the link to be active

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘aiovg_custom_back’ not found or invalid function name in /home/5/a/aikido/www/wp-includes/class-wp-hook.php on line 292

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    I confirm the code works fine for us here. I guess you are not copying the whole code. Could you please double check?

    If still the issue remains, kindly submit a ticket on our website here https://plugins360.com/support/

    Thread Starter kallinen

    (@kallinen)

    I got it to work, i had to change

    add_filter( ‘aiovg_back_to_categories_link’, ‘aiovg_custom_bac’);

    to

    add_filter( ‘aiovg_back_to_categories_link’, ‘aiovg_custom_back_to_categories_link’);

    Thank you for you help! This is really a nice gallery!

    Thread Starter kallinen

    (@kallinen)

    Thanks for all you help, you are awesome. Now i did see that the code you gave me was longer and correct, so sorry for the misunderstanding. Didn´t see the scrollbar. I just have one more question, is it possible to get a back to categories link (with custom link) from the tag page too?

    • This reply was modified 2 years, 11 months ago by kallinen.
    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Sorry, since the topic has been marked as solved, I didn’t notice your another question.

    But, while checking your website address, I see you have managed to add the “All Categories” link on your own on the tag page. I’m really happy about this.

    Please feel free to contact us for further questions.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirect back to all Categories’ is closed to new replies.