Phil Huhn
Forum Replies Created
-
AuthorPosts
-
June 15, 2020 at 1:03 pm in reply to: Social Care Pro, Feature request to add Alt text to Home Page images #24192
Phil Huhn
ParticipantHey:
When are you expecting the next theme update?
I have two more updates to header.php. I believe I found a shortcoming in header.php, per the homepage slider. On line 160, the images are displayed as follows:
$n++; ?><img src="<?php echo esc_url($sv['image_src']); ?>" alt="<?php echo esc_attr($sv['image_title']);?>" title="<?php echo '#slidecaption'.$n ; ?>"/><?php
Notice that the alt text is assigned a value, but that value is never created. I created it, around line 149, as follows:
$slAr[$m]['image_url'] = of_get_option('slidelink'.$i, true); $slAr[$m]['image_title'] = of_get_option('slidetitle'.$i, true); $m++;
Additionally in header.php to add alt text for the logo, I changed line 64 as follows:
<a href="<?php echo home_url('/'); ?>"><img src="<?php echo esc_url( of_get_option( 'logo', true )); ?>" alt="<?php bloginfo('name'); ?> Logo" /></a>
Finally don’t forget to informed me when you expecting the next theme update?
Thanks,
PhilJune 14, 2020 at 6:14 pm in reply to: Social Care Pro, Feature request to add Alt text to Home Page images #24177Phil Huhn
ParticipantHey Again:
For example you have 4 shortcode in inc/custom-functions.php that are something like the following:
extract(shortcode_atts(array( 'image' => '', 'title' => '', ... ), $atts)); return ' ... '<img src="'.$image.'" alt="" />'
If the above is changed to the following, then you would have a more ADA compliant theme with alt text:
extract(shortcode_atts(array( 'image' => '', 'alt' => '', 'title' => '', ... ), $atts)); if( $alt =='' ) { $alt = $title; } return ' ... '<img src="'.$image.'" alt="'.$alt.'" />'
Additionally, with parent themes, it’s good practice to make your functions pluggable so that you can easily override them in child themes. This simply means to wrap them in a conditional tag with PHP’s function_exists() to check if a function with that name has already been run.
Thanks,
PhilJune 12, 2020 at 4:16 pm in reply to: Social Care Pro, How to get Alt text for Home Page slider #24143Phil Huhn
ParticipantHey:
3) How to get Alt text for Testimonials [testimonials]?
Thanks,
PhilPhil Huhn
ParticipantHi:
Per your response about ‘Update Failed’, I prefer the Gutenberg editor and when I tried the ‘Classic Editor’, it did not let me toggle between the two editing experiences. Gutenberg editor is the future of WordPress, so I strongly advise you to correct the problem to remain a viable theme company.
Again, where is the [our-team] short code? In working with other themes, I have never been asked for an account to log into the site. I would prefer not to start. I need to know how to solve the problem.
Additionally, the image is getting stretched. I have created a temporary page to illustrate this. The site URL is in the original post. How to correct the stretched image?
Note: every problem is an opportunity to get better.
Phil
Phil Huhn
ParticipantHi:
I also have that problem. Please explain how I can solve the problem.
Phil
Phil Huhn
ParticipantHi:
When I export from one site and import to another, I will go into an editor (MS Code) and edit the XML file. I change the URL of the site. Moving the database will not convert these values. So your technique is flawed. I am unsure of what is happening with the home page of your site. It almost seems to be virtual page of some sort. If that is the case, then exporting and import will also not work.
Phil
Phil Huhn
ParticipantHi:
Thanks for the very fast response (and on the weekend even).
I would be remiss not to mention that the changed header.php code file should be added to ones ‘child theme’. See the following URL per ‘Child Themes’:
https://developer.wordpress.org/themes/advanced-topics/child-themes/Phil
November 10, 2019 at 1:36 pm in reply to: Social Care Documentation needs to be update per WordPress 5 #18647Phil Huhn
ParticipantHi:
Example in ‘Inner Page Banner’ you are showing ‘Classic’ editor and other references to editing page does not consider Gutenberg editor.
Or does this theme require WordPress 4.x?
Phil
Phil Huhn
ParticipantHi:
I am using Social care Lite.
This does not follow the 5.x WordPress administrators navigation.
Appearance -> Theme Options Panel -> Header Contact Info
And in the ‘Add button button name for donation here’ text-box I entered the anchor tag. And it did not work.How do I get the Donate button link to work.
Phil
-
AuthorPosts