rbarron
Forum Replies Created
-
Appreciate the reply. Here’s the code we were given for use in the child theme functions.php to populate the alt tag that’s no longer working when using optimole. Appreciate any suggestions to customize for use with optimole.
/* Fetch image alt text from media library */ function get_image_alt_text($image_url) { if ( ! $image_url ) return ''; if ( '/' === $image_url[0] ) $post_id = attachment_url_to_postid(home_url() . $image_url); else $post_id = attachment_url_to_postid($image_url); $alt_text = get_post_meta($post_id, '_wp_attachment_image_alt', true); if ( '' === $alt_text ) $alt_text = get_the_title($post_id); return $alt_text; } /* Update image alt text in module properties */ function update_module_alt_text( $attrs, $unprocessed_attrs, $slug ) { if ( ( $slug === 'et_pb_image' || $slug === 'et_pb_fullwidth_image' ) && '' === $attrs['alt'] ) $attrs['alt'] = get_image_alt_text($attrs['src']); elseif ( $slug === 'et_pb_blurb' && 'off' === $attrs['use_icon'] && '' === $attrs['alt'] ) $attrs['alt'] = get_image_alt_text($attrs['image']); elseif ( $slug === 'et_pb_slide' && '' !== $attrs['image'] && '' === $attrs['image_alt'] ) $attrs['image_alt'] = get_image_alt_text($attrs['image']); elseif ( $slug === 'et_pb_fullwidth_header' ) { if ( '' !== $attrs['logo_image_url'] && '' === $attrs['logo_alt_text'] ) $attrs['logo_alt_text'] = get_image_alt_text($attrs['logo_image_url']); if ( '' !== $attrs['header_image_url'] && '' === $attrs['image_alt_text'] ) $attrs['image_alt_text'] = get_image_alt_text($attrs['header_image_url']); } return $attrs; } /* Add Filter to Include Alt Text from Media Library */ add_filter( 'et_pb_module_shortcode_attributes', 'update_module_alt_text', 20, 3 );
Team members have disappeared again after exporting and importing. Please advise on how to get them back. The short code displays them fine, no way to edit.
Tag Manager does the trick using the Element Visibility Trigger for div.awsm-application-message.awsm-success-message.
….. Rick
Thank you for the reply Vidya. Checking to see if I can use the ID in the form submission button with Google Tag Manager.
Forum: Plugins
In reply to: [Login Logo Editor] Logo Image Missing WarningSUCCESS, thank you Scott.
Forum: Plugins
In reply to: [Login Logo Editor] Logo Image Missing WarningI do not, never had to use the full url. Has that changed?
Forum: Themes and Templates
In reply to: [Spacious] Two Header LogosHere’s my child theme version of footer.php
<?php
/**
* Theme Footer Section for our theme.
*
* Displays all of the footer section and closing of the #main div.
*
* @package ThemeGrill
* @subpackage Spacious Child
* @since Spacious 1.0
*/
?>
</div><!– .inner-wrap –>
</div><!– #main –>
<?php do_action( ‘spacious_before_footer’ ); ?>
<footer id=”colophon” class=”clearfix”>
<?php get_sidebar( ‘footer’ ); ?>
<div class=”footer-socket-wrapper clearfix”>
<div class=”inner-wrap”>
<div class=”footer-socket-area”>
<p class=”float-left”>Copyright © 1999 – <?php echo date(“Y”); ?> by Rick Barron, All Rights Reserved.</p>
<nav class=”small-menu clearfix”>
<?php
if ( has_nav_menu( ‘footer’ ) ) {
wp_nav_menu( array( ‘theme_location’ => ‘footer’,
‘depth’ => -1
) );
}
?>
</nav>
</div>
</div>
</div>
</footer>
</div><!– #page –>
<?php wp_footer(); ?>
</body>
</html>Forum: Themes and Templates
In reply to: [Spacious] Two Header LogosWarnings have disappeared. I used the custom CSS to hide the 2nd logo.
Thank you …. Rick
Forum: Themes and Templates
In reply to: [Spacious] Two Header LogosI switched to Spacious and received the following warnings:
Warning: array_merge(): Argument #3 is not an array in /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php on line 1211
Warning: array_diff(): Argument #2 is not an array in /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php on line 1212
Warning: Invalid argument supplied for foreach() in /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php on line 1214
Warning: array_merge(): Argument #1 is not an array in /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php on line 1222
Warning: Cannot modify header information – headers already sent by (output started at /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php:1211) in /home1/eaglehb/public_html/barronsplace.com/wp-admin/includes/misc.php on line 1196
Warning: Cannot modify header information – headers already sent by (output started at /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php:1211) in /home1/eaglehb/public_html/barronsplace.com/wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information – headers already sent by (output started at /home1/eaglehb/public_html/barronsplace.com/wp-includes/widgets.php:1211) in /home1/eaglehb/public_html/barronsplace.com/wp-includes/pluggable.php on line 1254
I get the same when returning to the child theme.
Forum: Themes and Templates
In reply to: [Spacious] Two Header LogosThank you for the prompt reply Rajesh. The site has many sub-domains all using child themes. This is the only one with the double icon. Which code do you suggest checking/reviewing in the child theme?
Thank you …. Rick
thank you for the help.
Forum: Plugins
In reply to: [Image Caption Hover] Caption Before HoverThanx for the prompt reply.
Trying to replicate this behavior – https://bestfriends.org/donate
….. Rick
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Updraft Backup of http vs httpsPosted to Amazon S3 – https://s3-us-west-2.amazonaws.com/intercept-public/log.f83f08c514d0.txt
Thank you for the assistance.
….. Rick
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Updraft Backup of http vs httpsSite address and WordPress address set to https://indyims.com
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Updraft Backup of http vs https