Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • I know this post is from 2015 but it’s what showed up when I was searching on Google and it doesn’t look like anyone gave him the answer he was looking for. If you need to do something like this, this the solution I found worked best.

    function add_modal_qs(){	
    	if(isset($_GET['modal'])) {
    		global $avia_config;
    		if(isset($avia_config)) {
    			$avia_config['template'] = 'blank';
    		}
    	}
    }
    function add_modal_html_class(){
    	if(isset($_GET['modal'])){
    		echo ' modal-friendly ';
    	}
    }
    add_action('init', 'add_modal_qs');
    add_action('html_classes', 'add_modal_html_class');

    This removes the header, footer, and sidebars, and adds a custom class to the HTML tag so you can modify the styles to make it fit an IFrame better, IF ?modal is added to the end URL. You should make other adjustments like limiting it to just pages that you want allowed to use it.

    • This reply was modified 6 years, 9 months ago by FindlyTalent. Reason: Clarifications
    in reply to: Icon Font Uploader giving cryptic error #606067

    Any thoughts guys?

    We are dead int he water here, and this functionality has been working flawlessly up until 4.4.2.

    Thanks,

    in reply to: Icon Font Uploader giving cryptic error #605293

    Well uploading the Zip isnt an issue, it is only erroring when activating it via the Enfold theme settings to use that font where we have the issue.
    A default theme wouldnt have that interface.

    • This reply was modified 8 years, 7 months ago by FindlyTalent.
    in reply to: Icon Font Uploader giving cryptic error #604152

    sure … see below.

    in reply to: Preview button not showing recent changes while editing #581321

    Martin – did you ever figure out what was going on here?

    THis has starte happening on our multisite platform as well, in exactly the same way.

    in reply to: Preview button not showing recent changes while editing #581320

    Hi there,
    We are experiencing the same issue on our multisite installation with multiple admins.

    We have tried all clearing caches and even working in incognito mode to block caching all together, and the issue still exists.

    We even experience the same issue reported above that this seems limited to Page content types.

    Any guidance you can provide that helped previous users?

    Thanks,

    Kit

    in reply to: Duplicate ids on mobile menu #550663

    Will that responsive menu option work with WPML, because the site I’m working on has 3 languages associated with it.

    I think when the menu is cloned in javascript for mobile, can’t the ids of the child <li> tags just be looped through and modified with a ‘-m’ or something?

    • This reply was modified 8 years, 11 months ago by FindlyTalent.
    in reply to: Menus Removed from Widget Areas #523982

    I’m sorry I can’t grant that kind of permission either, we have almost 100 clients on our multisite. It’s easy enough to recreate, just create a site with maybe 3 footer columns, add something to each, then try lowering or increasing the number of columns in the Enfold setup and see if the widgets in the widget areas shift.

    in reply to: Menus Removed from Widget Areas #523276

    Similar things have happened to me. I notice when I change themes (ex: from Enfold parent to an Enfold child), the widgets in widget areas get shifted or thrown in the inactive area. This also happens when you modify the number of footer columns, so I think it’s an issue with how Enfold identifies the custom widget areas it creates.

    I only wanted the breadcrumbs on their own, so I ended up putting the following into my child theme’s functions.php:

    if (!function_exists('only_breadcrumbs')) {
        function only_breadcrumbs($atts) {
            $atts = shortcode_atts( array(
                    'separator' => '&rsaquo;',
                    'front_page' => true,
                    'show_home' => __('Home', 'avia_framework'),
                    'richsnippet' => false
                ), $atts, 'bread_crumb');
            $breadcrumb = avia_breadcrumbs( array(
                'separator' => $atts['separator'],
                'front_page' => $atts['front_page'],
                'show_home' => $atts['show_home'],
                'richsnippet' => $atts['richsnippet'],
                'before' => false  // removed the text before the breadcrumbs
            ));
            return $breadcrumb;
        }
    }
    add_shortcode('bread_crumb', 'only_breadcrumbs');

    It seems when writing the shortcode, the separator works best with html entities and 0s and 1s instead of false and true, so
    [bread_crumb separator="& gt;" show_home=0]
    (no space between the & and gt;)
    Would change the separator to a > and remove the Home link. If I tried to set the separator=”>”, then it would actually use a double quote, greater than sign, and another double quote, and false didn’t seem to work for show_home.

    • This reply was modified 9 years, 6 months ago by FindlyTalent. Reason: didn't want html entities to encode

    So going by http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/ is this right?:

    1. create a functions-enfold.php file in my child theme
    2. copy and paste the whole avia_title() function in from the parent theme
    3. put after it add_shortcode( ‘bread_crumb’, ‘avia_title’ );
    4. clone the template-builder.php file to the child theme
    5. comment out the 19th line

    Thanks,
    Eric

    Is there a way to add this breadcrumb shortcode to the child theme without editing the parent?

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