• I’m trying to change the URL of the link surrounding the logo (Not my decision: We want this to link to the main organization site, and are including a link to the WordPress site in the main nav). The site has a child theme for Atomic Blocks (working fine). I’ve edited the child theme version of template-tags.php to hard code the URL, however, the child template-tags.php is not recognized. Is there a better way to handle this when using Atomic Blocks? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The theme calls a function named atomic_blocks_title_logo() to display the logo, which then uses the WordPress function called the_custom_logo() to display the logo. That WP function automatically links to the site’s homepage.

    A couple ways you can handle this.

    1) Redefine the atomic_blocks_title_logo() function in your child theme’s functions.php. The Atomic Blocks theme checks to see if that function exists before defining it, which means you can override it in your child theme.

    2) The WordPress core function called the_custom_logo() passes the HTML of the logo and link through a filter right before displaying it. That filter is named get_custom_logo.

    Either method should work. The first is probably easier, especially since you’ve already edited that function directly and understand the changes you need to make. You could port over your customizations to the redefined function in your child theme’s functions.php file.

    Thread Starter Bolman Deal

    (@bolman-deal)

    Thanks John! I played around with both, and ended up using the latter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing the URL of the home page link’ is closed to new replies.