WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Phil Huhn

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Phil Huhn
    Participant

    Hey:

    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,
    Phil

    Phil Huhn
    Participant

    Hey 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,
    Phil

    Phil Huhn
    Participant

    Hey:
    3) How to get Alt text for Testimonials [testimonials]?
    Thanks,
    Phil

    in reply to: Social Care Pro: [our-team] shortcode issues #18701
    Phil Huhn
    Participant

    Hi:

    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

    in reply to: Social Icons at header and footer #18700
    Phil Huhn
    Participant

    Hi:

    I also have that problem. Please explain how I can solve the problem.

    Phil

    in reply to: Social Care Pro: Moving Site to production #18699
    Phil Huhn
    Participant

    Hi:

    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

    in reply to: Social Care Theme Link Donate Now Button #18651
    Phil Huhn
    Participant

    Hi:

    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

    in reply to: Social Care Documentation needs to be update per WordPress 5 #18647
    Phil Huhn
    Participant

    Hi:

    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

    in reply to: Social Care Theme Link Donate Now Button #18641
    Phil Huhn
    Participant

    Hi:

    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

Viewing 9 posts - 1 through 9 (of 9 total)