Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #733175

    There are some hardcoded http:// links in enfold theme. For example:

    enfold\framework\php\class-framework-widgets.php

    if ( !empty( $title ) ) { echo $before_title . "<a href='http://twitter.com/$username/' title='".strip_tags($title)."'>".$title ."</a>". $after_title; };
    	Line 390: 		    		if($avatar == "yes") $output .= '<div class="tweet-thumb"><a href="http://twitter.com/'.$username.'" title=""><img src="'.$message['user']['image'].'" alt="" /></a></div>';
    	Line 419: 	    $text = preg_replace("/@([\p{L}\p{Mn}]+)/u", "<a href="http://twitter.com/\\1">@\\1</a>", $text);
    	Line 758: 					$link = 'http://twitter.com/'.$twitter.'/';

    How can I override those links in my childtheme?
    Twitter has an https:// site and the http:// default link to twitter is outdated.

    • This topic was modified 7 years, 11 months ago by bluecafe.
    #734578

    Hey bluecafe,

    Thank you for using Enfold.

    Please copy the whole “avia_tweetbox” class without the “class_exists” function in the child theme’s functions.php file.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.