Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Changing custom logo link

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:

  1. Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
  2. How to set the WordPress logo programmatically with PHP
  3. Logo custom width not implementing
  4. Create custom API endpoint to change custom header image
  5. Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
  6. Custom shortcode outputs plain text instead of HTML at top of post
  7. how can i use $_COOKIE[] + PostID to execute the below code?
  8. Return a numerical function value in Customizer controls
  9. getting logged in user info (wp-load.php) from parent directory
  10. How can I get the values of my WordPress $wpdb query in Jquery?
  11. What’s the uses of wp_cache_set() or wp_cache_add()?
  12. Get users that likes the post
  13. Blog posts repeat
  14. Ajax load more button for comments wordpress
  15. Function to capture a value and store it in a variable
  16. How to abort saving data in save_extra_profile_fields function WordPress?
  17. Pass php dynamic variable to shortcode
  18. Unique icons next to each WordPress menu item
  19. 3 Slashes appear after Apostrophe in custom fields after updating product-site
  20. How to create a php variable using WordPress the_title() function
  21. Keyword checking in Gravity Forms
  22. how to refresh div on template part?
  23. Child page menu in sidebar
  24. Populate editor with some content of a page with a page template
  25. Title Case WordPress Menu Items
  26. I want to load in a new class but only if the current page is single-movies.php
  27. Modify function to print tags/categories/exclude tags/categories/ number of posts
  28. Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
  29. Search not showing all results
  30. Validation algorithm in checkout field
  31. Css loads very slow [closed]
  32. Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
  33. Show when user is online/offline in real time on user_profile.php
  34. Enable custom logo upload if logo is not in header
  35. Limit 1 global comment per minute
  36. Create highly customized submenu (possibly using wp_list_pages)
  37. Create Page To Count Comments For Each Post In WordPress Site
  38. Modify custom field input data before creating a new post
  39. Adding a widget function into the php theme file
  40. Update user profile information from functions.php
  41. WordPress Quick Question . How to Get Parent Link in Submenu in My Code
  42. Get the date of the className or classID
  43. My new button is in the wrong place
  44. Can’t find infinite loop cause
  45. how to make custom ajax handler?
  46. Checking array against author id in loop
  47. Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
  48. Scrape external webpage for first image and add it to new post
  49. Skt full width basic slideshow problem
  50. How to Reference/Echo Variable from Another PHP Function
  51. Remove echo from shortcode
  52. wp-comments-post.php file returns a blank page
  53. php function to display commenter username or login
  54. Detecting classes, adding widgets, and adding divs in with a Nav Walker
  55. Add .htm extention to a custom taxonomy
  56. theme_root returning a truncated URI
  57. $wpdb->wp_users returning empty value for
  58. WordPress Custom field Colors
  59. How to change menu order item
  60. Call to undefined method – Download Monitor
  61. Query Pages and post excerpts dynamically
  62. How to disable controls in theme customizer?
  63. Way to add captions to gallery images by code
  64. How do I link a button I created in theme customizer to a function?
  65. Trying to retrieve post meta
  66. Need help enqueueing webfonts
  67. register_taxonomy() take much queries
  68. Can anyone offer any help with this function?
  69. php syntax : [ && ] between commands [closed]
  70. Add class to group inner container
  71. Call to undefined function get_userdata() in plugin
  72. Custom gallery in wp3.5
  73. Echo string and function?
  74. responsive.css in the WordPress should be prioritized
  75. Is there a way to conditionally check whether a WordPress post title is empty?
  76. How to change menu labels
  77. How can I modify footer when footer.php calls to another file?
  78. My custom get_the_excerpt() can’t get excerpt by ID
  79. Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
  80. Exclude category
  81. Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
  82. Security for data obtained from the database
  83. is there a benefit in using a constant over get_stylesheet_directory_uri?
  84. jQuery code not working when included in functions.php
  85. Fatal Errors on pluggable.php
  86. WooCommerce Tabs [closed]
  87. Log in / Log Out Custom Button
  88. Alter required message using comment form api
  89. Noscript not working as it should in wordpress site
  90. Shortcode with PHP issue “Undefined index”
  91. How to get Post Type from the functions.php file
  92. Copyright info change – Corporate Plus Theme PHP [closed]
  93. Inject class in body when particular page template is used
  94. how to test for all children (including multilevel grand-childern) of page
  95. Dilemma of Populating all the categories in a drop down list
  96. Add item to top of menu using a filter in functions.php
  97. Which PHP page is the Default Posts Page
  98. height should be set to auto to avoid pixelation in the post thumbnail function
  99. How can I make an object available through the entire site?
  100. WordPress admin-ajax.php
Categories PHP Tags custom-header, functions, logo, php
How to display terms from a custom taxonomy in a hierarchy AND with custom html markup?
One-to-many post relationships that are displayed by category (using posts-to-posts plugin)

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress