Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #165285

    if I change the iconbox.php file and update it in the parent file I see the change. If I simply place the updated iconbox.php file in my default child directory I don’t see the change. How do I call the file in my child directory. do I need to change another file also that points to the new file?

    #165474

    Hello allegrabillings!

    You may need to re-create the function you modified in your functions.php file (in the child folder).

    Cheers!
    Josue

    #165836

    I added the function only, to my child’s function.php file and nothing happened. but I see the other forum provided edits to funtions in my child folder start with add_filter( then contend) followed by a function. If I needed to add the filter also I don’t know what the values should/would be.

    Can you provide what that should be?

    original line was

    $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';

    edited to

    if(!empty($link))
    	{
    	$output .= "<a href='$link' title='".esc_attr($title)."' $linktarget>";
    	$output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';
    	$output .= '</a>';
    	}
    	else
    	{
    	$output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';
    	}
    #166268

    Hello!

    Since this topic already has a partial response I’ll continue it here. You can include and overwrite the shortcode by adding a function like this in addition to the file:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    So you’ll create a shortcodes folder in your child theme and then put the altered file in that folder and the function above will then recognize that folder and its contents.

    See Dude’s explanation here as well: https://kriesi.at/support/topic/portfolio-meta/#post-130512

    Regards,
    Devin

    #166322

    Thank you so much Devin. Bloody Brilliant answer. I was able to follow along and the icons are now active links. Worked perfectly. Unfortunately for me as long as you guys give the actual php code and clean directions I can make the changes. I just wish I could figure out the actual php code you guys produce for us. But obviously that is why my label is participant not moderator. haha

    thanks again for the clean answer. Sorry for the double posting and over all bad form in the forum on bumping.

    Cheers
    Brock

    #166336

    Glad that worked for you! We are working on trying to get a new FAQ up, guides, tutorials etc but this theme is *too* popular and we are super busy with support recently.

    We get double posts, bumps etc all the time and until we actually explain how it works no one would be able to know anyhow so no worries :)

    Regards,

    Devin

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Iconbox link’ is closed to new replies.