Forum Replies Created

Viewing 15 posts - 16 through 30 (of 54 total)
  • Posted in:
  • dekkydog
    Member
    Post count: 59
    This reply has been marked as private.
    dekkydog
    Member
    Post count: 59
    This reply has been marked as private.
    dekkydog
    Member
    Post count: 59
    This reply has been marked as private.
    dekkydog
    Member
    Post count: 59
    This reply has been marked as private.
    dekkydog
    Member
    Post count: 59
    This reply has been marked as private.
    dekkydog
    Member
    Post count: 59

    Hi Rui,
    I am developing locally so I don’t have a page to show you.

    However, you can try this on your demo site (takes just 1 minute to test).

    1) Go to your demo site at – http://dante.swiftideas.com/shortcodes/tabs-tours/#tab1

    2) Put in a standard “a link” in the “Tab-pane” (IE: within the content area for #tab1).

    Like this: <a href="#tab2">This is a link</a>

    This ONLY changes the URL in the address bar and does NOT activate #tab2 or tab pane for #tab2?

    I have tried this:

    <a class="nav-tabs" href="#tab2" data-toggle="tab">This is a link</a>

    This changes the active TAB PANE to be “#tab2” but the TAB NAV (for #tab2) does NOT change? IE: #tab2 is NOT active.

    Shouldn’t this be straight forward to link to another tab?

    I look forward to your help?

    Cheers 🙂

    dekkydog
    Member
    Post count: 59

    Hi,
    I’ve just solved this but you need to add support for the pseudo :focus class for the mega menu. IOS (touch) devices don’t handle hover states very well.

    To fix the issue I used:

    /* --------------------------------------------
    	iPAD/TABLET LANDSCAPE
    -------------------------------------------- */
    @media only screen and (max-width: 1024px) {
    
    /* ------- ALLOW MEGA MENU HOVER STATE TO BE TERMINATED ------- */
    body {cursor: pointer;}
    }

    If the user decides to NOT click a link in the megamenu they need a method to hide it – without clicking on a link!

    The above method is more of a hack to solve this issue.

    Cheers

    in reply to: Alt and Title tags – within button shortcodes? #176466
    dekkydog
    Member
    Post count: 59

    Thanks 🙂

    in reply to: Alt and Title tags – within button shortcodes? #176461
    dekkydog
    Member
    Post count: 59

    Ok. Is this feature likely to make it into the next minor release of the Dante theme?

    Cheers

    in reply to: Alt and Title tags – within button shortcodes? #176424
    dekkydog
    Member
    Post count: 59

    Hi there,
    your temporary hack works fine 🙂 but I have been trying to do this from my functions.php but doesn’t seem to work? Can you take a quick look at this and tell me if you see any obvious issue (am I missing something here?):

    add_action( 'after_setup_theme', 'my_dante_shortcode' );
    
    function my_dante_shortcode() {
    if (!function_exists('sf-button')) {
       remove_shortcode( 'sf-button' );
    }
       add_shortcode( 'sf-button', 'my-button' );
    
    }
    	function my_button($atts, $content = null) {
    		extract(shortcode_atts(array(
    			"size"			=> "standard",
    			"colour"		=> "",
    			"type"			=> "",
    			"link" 			=> "#",
    			"target"		=> '_self',
    			"dropshadow"            => '',
    			"icon"			=> '',
    			"extraclass"            => '',
    			"title"                 => ''
    		), $atts));
    		
    		$button_output = "";
    		$button_class = 'my-button '.$size.' '. $colour .' '. $type .' '. $extraclass;
    				
    		if ($dropshadow == "yes") {
    		$button_class .= " dropshadow";
    		}
    		
    		if ($type == "sf-icon-reveal" || $type == "sf-icon-stroke") {
    			$button_output .= '<a class="'.$button_class.'" href="'.$link.'" target="'.$target.'" title="'.$title.'">';
    			$button_output .= '<i class="'.$icon.'"></i>';
    			$button_output .= '<span class="text">'. do_shortcode($content) .'</span>';
    			$button_output .= '</a>';
    		} else {
    			$button_output .= '<a class="'.$button_class.'" href="'.$link.'" target="'.$target.'" title="'.$title.'"><span class="text">' . do_shortcode($content) . '</span></a>';
    		}
    		
    		return $button_output;
    	}
    	add_shortcode('my_button', 'my_button');

    Really don’t want to alter the main theme for future updates!

    Cheers

    in reply to: Alt and Title tags – within button shortcodes? #176384
    dekkydog
    Member
    Post count: 59

    Thanks 🙂

    Will add a filter in my functions.php to apply to the framework.

    Appreciate your help.

    Cheers

    in reply to: Alt and Title tags – within button shortcodes? #176370
    dekkydog
    Member
    Post count: 59

    Hi,
    no screenshot required here? Do you know what a title tag (attribute) is? – http://www.w3.org/TR/WCAG20-TECHS/H33.html

    In the shortcode (I posted above) the – title=”A custom title tag that gets stripped” is the part that gets removed in the browser IE: I manually added this attribute to the shortcode, its NOT there by default. I don’t think you can aleviate this issue with css?

    in reply to: Alt and Title tags – within button shortcodes? #176366
    dekkydog
    Member
    Post count: 59

    Hi,
    I’m developing locally. Its just a standard button shortcode:

    [sf_button colour="accent" type="standard" size="large" link="#" target="_self" icon="" dropshadow="no" extraclass="" title="A custom title tag that gets stripped"]Large button[/sf_button]

    Cheers

    in reply to: Alt and Title tags – within button shortcodes? #176362
    dekkydog
    Member
    Post count: 59

    ok,
    alt and title tags are a very old web standard. Others may not have asked because they may not appreciate the value of these tags?

    No temporary work around until this is added into the framework?

    Cheers

    dekkydog
    Member
    Post count: 59

    Its always possible 🙂

    I think what you are saying is help with this is outside of support scope.

    No worries.

Viewing 15 posts - 16 through 30 (of 54 total)