Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17080

    Hello,

    For whatever reason, when I uploaded the WooCommerce Groups Extension to this theme it collapsed the Top Call Out Area/Box on my Frontpage.

    I got some help here to make the box display again however the shortcode that was inserted into the box is not ‘activated’ for that area. I was instructed to comment out this line 347 of the helper-templates.php:

    // $dynamic_text = apply_filters('the_content', $dynamic_text);

    Link to site: http://virtualprivateinternet.com

    Will you please take a look/advise?

    Thank you.

    Bryan

    #94114

    Hi,

    I don’t think it is possible to put a shortcode on that area.

    That line is for the Template Builder’s Text Area/Call out/Quotes element.

    // $dynamic_text = apply_filters('the_content', $dynamic_text);

    It will not affect the top banner. Anyway, you can find the code for the top banner on functions.php.

    if(!function_exists('avia_banner'))
    {
    function avia_banner($position)
    {
    $extraClass = "";
    $output = "";
    $cookieHash = "";
    $bannerText = avia_get_option('banner');
    $cookieName = THEMENAME.'_avia_banner';
    $bannerHash = md5($bannerText);
    if($position) $extraClass = 'relative_pos';

    if(!empty($_COOKIE[$cookieName])) $cookieHash = $_COOKIE[$cookieName];

    $output .= "<div class='$extraClass container_wrap info_text_header' id='info_text_header' data-hash='$bannerHash' data-cookiename='$cookieName'><div class='container no_css_transition'>";
    if(trim($bannerText) != "" && $bannerHash != $cookieHash)
    {
    $output .= "<div class='infotext'>$bannerText <a class='close_info_text rounded' href='#close'>".__('close','avia_framework')."</a></div>";
    }

    $output .= "</div></div>";
    echo $output;
    }
    }

    Regards,

    Ismael

    #94115

    Hey Ismael,

    It accepted short code until it collapsed but in another forum post it was suggested that I contact the plugin (groups) designer due to a conflict in the way the (groups) plugin is designed/coded.

    #94116
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Frontpage – Callout Area/Box not accepting shortcode’ is closed to new replies.