Use the following code to replace the original code:
if(!get_theme_mod('site_logo_dark')) echo '<img width="'.$logo_width.'" height="'.$logo_height.'" src="'.flatsome_option('site_logo').'" class="header-logo-dark" alt="your alt information here" />';
i.e. you’re replacing alt="'.$site_title.'" with alt="your alt information here".
What the '.$site_title.' means is the echo statement ends at the ' and then the PHP variable $site_title is appended to the string, and then the string reopens with the '. The . is a string concatenation character in PHP.
Related Posts:
- How to set custom cookies before output
- How to stop loading multiple copies of jquery
- Creating a WordPress form with a PHP script and default header
- Why isn’t my if/elseif/else working correctly here?
- StudioPress: add meta tag to every page [closed]
- Add custom HTML to posts page
- Using PHP to toggle stylesheet and header image, set in cookie
- Mysterious HTTP 404 header in my own scripts
- Change logo based on incoming domain
- Echo URL of large version of Featured Image
- Conditional Header in wordpress
- add_image_size for header_image
- Responsive Header for Phone
- My php header() function is not working [closed]
- “imagejpeg” function is not working in wordpress
- wp-comments-post.php file returns a blank page
- Insert custom PHP head above in WP pages
- Headers already sent in Pluggable.php / homepage and wp-login error
- Is_front_page inside header.php is always returning true
- Does wordpress templates always in files or in database?
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- Moving code from theme header to functions.php
- WordPress wp_redirect error
- Having Issue on Redirecting With Session in WordPress
- linking stylesheets and scripts with functions.php
- Location of core code for database connection and get_header
- Clickable image link sends people to wrong URL
- unknown issue in ‘header.php’ preventing theme from displaying fully
- How can I use a sliced image As banner? [closed]
- Add meta tags to a custom header
- Is this a correct usage of ob_start() in my WordPress project?
- Change header on pages displaying taxonomy items
- Custom CSV exporter – Cannot modify header information – headers
- How to add Post Tags to a new element in header.php?
- setcookies and header send
- How to internationalize header image?
- Custom functions for string data calculations
- How do you remove header sitewide from mobile only?
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- How do I use an iFrame for my header in WordPress twenty seventeen?
- WordPress can’t use ZipArchive
- Reliable way to add nonce to HTTP Header in WordPress?
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- Display values of current POST request on page
- Using Javascript On Page – Header and Footer Now Missing
- Modifying child theme’s header
- Add my footer menu to the header
- Change headers for one custom PHP file
- Premature end of script headers: wp-mail.php?
- setcookie() issues on running with HTTPS on WordPress
- Allow user to choose header style
- How to include different html tags in the header for different pages?
- Use header option on wp-login page with a second logo
- my site show this symbol (::) between site title and tagline
- Headers Already Sent
- Changing 2011 theme header image based on user dropdown
- Converting Menu Links to List Elements
- Warning: Cannot modify header information (with a twist)
- Cannot get custom javascript to execute on page
- Cannot modify header information – headers already sent
- Dynamic Email Handler with ‘header (“Location: …’
- How to use wp_insert_user on WordPress Multisite?
- Successful or Error Message after running mysql code in functions.php
- Trying to make php run in a post
- WordPress Site Running Extremely Slow on Dedicated Server
- Redirect undesirable domain
- Trying to install wordpress locally with mamp, but have unsupported php version
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- PHP code to use on next & previouspage links
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- Output only links using wp_nav_menu()
- How to make the WordPress Editor not accept HTML?
- WordPress Custom Add To Cart Button with AJAX
- Custom reduce stock code affecting date_modified – How to bypass?
- Publish button now showing content after saving
- User filter posts by year
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Trying to call dynamic content into a 3rd party shortcode
- Adding wp users ID into a link address from a DIVI modul
- Limit Search to Product Pages only unless I’m on Blogpage or Blogposts
- WP query posts BUT show the most recent and one per author
- Block error message in foreach loop when looping through ACF field
- “Class Not Found” in HTML Form Target PHP File that contains the class
- shortcodes, custom php and their errors
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Intermittent problem can the debug log give any clues?
- Filter by Post Type
- Need help to create WordPress page that decodes a text file and publishes it in JSON format
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- How to get total gross revenue for current month in the woocommerce dashboard status widget
- PHP is_embed error showing up
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- need help to arabic text in wordpress
- Sorting Meta Fields?
- Pagination not displaying
- Masking external links with internal link for member-only
- How to create custom user role without plugin?
- WordPress 6.1.1 shows deprecated errors with PHP 8.1 & 8.2
- There has been a critical error on this website – wordpress issue after upgrading PHP