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!
Hi. Thanks. That caused my site to go in a fatal error. Do you have any other suggestion?
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
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/
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!
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.
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.