Digital experiences for all disciplines
Forum Replies Created
-
-
July 7, 2015 at 1:25 pm in reply to: Standard links in a page to open tabs in the same page? #192393This reply has been marked as private.July 7, 2015 at 11:53 am in reply to: Standard links in a page to open tabs in the same page? #192364This reply has been marked as private.July 7, 2015 at 11:44 am in reply to: Standard links in a page to open tabs in the same page? #192357This reply has been marked as private.July 6, 2015 at 4:34 pm in reply to: Standard links in a page to open tabs in the same page? #192098This reply has been marked as private.July 6, 2015 at 3:49 pm in reply to: Standard links in a page to open tabs in the same page? #192073This reply has been marked as private.July 4, 2015 at 4:24 pm in reply to: Standard links in a page to open tabs in the same page? #191699
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 🙂
June 2, 2015 at 12:22 pm in reply to: iPad (landscape view) megamenu – Hide megamenu by tapping anywhere on screen #180634Hi,
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
Thanks 🙂
Ok. Is this feature likely to make it into the next minor release of the Dante theme?
Cheers
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
Thanks 🙂
Will add a filter in my functions.php to apply to the framework.
Appreciate your help.
Cheers
Hi,
no screenshot required here? Do you know what a title tag (attribute) is? – http://www.w3.org/TR/WCAG20-TECHS/H33.htmlIn 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?
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
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
March 16, 2015 at 3:06 pm in reply to: WYSIWYG – Show / Hide Individual Page Shortcodes – From Dropdown #157789Its always possible 🙂
I think what you are saying is help with this is outside of support scope.
No worries.
-