Advertisement
Gecata1

Blocksy Change the Logo URL

Mar 9th, 2024
1,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. add_filter('blocksy:header:logo:url', function ($home_page) {
  2.     // Check if we are on a page with a specific slug
  3.     if (is_page('your-page-slug')) {
  4.         // If we are on a page with the specified slug, return the new logo URL
  5.         return 'https://my-custom-url.com';
  6.     }
  7.     // If we are not on a page with the specified slug, return the original logo URL
  8.     return $home_page;
  9. });
Tags: Blocksy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement