You just need to put your url in the href
attribute of the link – like this (I used http://example.com):
<?php if( function_exists( 'the_custom_logo' ) && has_custom_logo() ) : ?>
<figure class="logo-image">
<?php flash_the_custom_logo(); ?>
<?php if( get_theme_mod( 'flash_transparent_logo', '') != '') : ?>
<a href="http://example.com">
<img class="transparent-logo" src="<?php echo esc_url( get_theme_mod( 'flash_transparent_logo', '' ) ); ?>" />
</a>
<?php endif; ?>
</figure>
<?php endif; ?>
Related Posts:
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to set the WordPress logo programmatically with PHP
- Logo custom width not implementing
- Create custom API endpoint to change custom header image
- How to set and use global variables? Or why not to use them at all
- Is it possible to disable a function of a parent theme?
- Hide old attachments from wp media library
- PHP – redirect https to http and www to non-www
- How to overwrite youtube embed?
- Enqueue Javascript Correctly for 3.5
- Add footer.php to WordPress child theme
- Need to get specific data from array
- Restrict WordPress File Type Uploads by User Type
- How to slow down server response
- Click loads template via ajax
- Generating add_settings_section() calls dynamically
- Sort registered users by post count? (inside admin dashboard)
- How to change a public function inside a class of a plugin?
- Remove query string specific key value
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Function set default image when image not present
- WooCommerce – Reset quantity input field when variation changes
- Query all posts of a custom taxonomy term
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Showing content from one page on another
- How to insert a single row to WP database table?
- Get date numerical and separate?
- How to remove or change the “W” icon in “My Sites”?
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
- How to check if a meta value has already been assigned to any user?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Firing schema via code in functions.php doesn’t work
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- getting logged in user info (wp-load.php) from parent directory
- Blog posts repeat
- Ajax load more button for comments wordpress
- Unique icons next to each WordPress menu item
- Update user profile information from functions.php
- How can I modify footer when footer.php calls to another file?
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- Function works everywhere, how to keep it to execute when creating a new post
- Function won’t run onclick using Ajax
- Add login hyperlink to secondary navigation menu
- Where is this function’s callback getting its arguments from?
- List all blogs, but exclude the main site
- change the default order of posts only for specific categories
- Reading settings in the home page precisely home.php
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Calling function in loop causes repeat data
- How to use functions [closed]
- Splitting the_content() by size?
- Is there a hack for using is_page() within the function.php file?
- Add a select-option to the default widgets
- Function to call either single post or category
- Programmatically revert to backup .htaccess a possibility?
- Updating Metadata with Shortcode
- can’t load .po file in functions.php
- WP-Bakery – Add custom colors to buttons with template colors
- WordPress User Meta value variable into Google Gauge Chart
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Create shortcode for metabox gallery
- Show all people who commented on all posts by an author
- How can I redefine WordPress wp-content directory programmatically?
- Trim Titles Only On Some Pages
- Custom global variable not working in function
- Embed video from streamtape using direct link
- Is there a PHP function that will return the block ID generated by WordPress?
- get_the_author_meta( ‘ID’ ) just return 1
- Enqueue sripts and styles only if function is called
- Site title not showing. Please help me
- Check if post visited first time
- ajaxurl usage for a custom function
- Store custom field’s multiple values in one user meta key
- oembed facebook link?
- Open/closed function [closed]
- Need to Echo A Url path to show on a wordpress page
- Theme editing “post thumbnail” help
- add a value to an external link query in searchform
- Restrict File Type Uploads by User on Wordress via functions.php
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- AJAX Returning Way Too Many Posts
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- How I can add div to menu?
- site_url() returns with additional backslashes
- How to print redirected query string variables to the page?
- Admin-area broken through weird issues
- How to get category pages to look like a certain archive page?
- How to call a specific value within the functions.php file?
- Select area and checkbox data is not saving?
- How to modify this function to exclude also the post belonging to a specific category?
- Suppress errors when using global function
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Warning: filemtime(): stat failed for wp_
- Keep users logged in Without Remember Me
- How to use js variable to php in wordpress functions.php
- Understanding responsive imagery
- How to get meta box labels?
- Background Tasks in a WP Cronjob?
- Tags being Inserted in html from plugin PHP not passing through the_content