holliej0 Posted October 22, 2013 Share Posted October 22, 2013 I am using a theme called Autumn which uses a module called Autumn Mega Menu for the top navigation, and I want one of the navigation links to open in a new window, but the module doesn't allow me to add any "_blank" html code. See attached for screenshot. Does anybody know how I can do this with one of my top navigation links using this module? Thanks! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted October 22, 2013 Share Posted October 22, 2013 I have never used that menu module. You might have to hard code the link in the module tpl. Marty Shue Link to comment Share on other sites More sharing options...
vekia Posted October 22, 2013 Share Posted October 22, 2013 hello this is all what you've got on module configuraiton page? nothing more? Link to comment Share on other sites More sharing options...
holliej0 Posted October 22, 2013 Author Share Posted October 22, 2013 Yes, that's all that appears on the module configuration page. If I have to hard code the link, what file do I do this in and where exactly in the file? Since the other navigation links are using this module, I don't want to screw things up. Link to comment Share on other sites More sharing options...
NemoPS Posted October 23, 2013 Share Posted October 23, 2013 You can try looking for it on autumnmegamenuy.tpl, but I can't tell if that really is the name of the file the module uses to build the menu. You should defintely contact the theme's developer Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted October 23, 2013 Share Posted October 23, 2013 I agree with Nemo1; however, another option here might be to switch to another menu module with a little more flexibility. It might require a little CSS work to get it to match your theme. Marty Shue 1 Link to comment Share on other sites More sharing options...
holliej0 Posted October 23, 2013 Author Share Posted October 23, 2013 Thank you, I'm more inclined to just edit the .tpl file, but do you know what specific code I would need to add to make one of the menu links open in a new window? Is there an "if" statement to add? I have only worked with php before so this code is a bit new to me. Thanks in advance. Link to comment Share on other sites More sharing options...
NemoPS Posted October 23, 2013 Share Posted October 23, 2013 Oh no no, this is simple html, just add target="_blank" to the anchor tag you want to open on a new window Link to comment Share on other sites More sharing options...
holliej0 Posted October 24, 2013 Author Share Posted October 24, 2013 There is nowhere I can add that simple html in the module that controls the menu - see screenshot attached. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted October 24, 2013 Share Posted October 24, 2013 There is nowhere I can add that simple html in the module that controls the menu - see screenshot attached. You will need to add it to the module tpl. (see Nemo1's post above) Marty Shue Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 why not simply right click, open in new window. Link to comment Share on other sites More sharing options...
holliej0 Posted October 24, 2013 Author Share Posted October 24, 2013 I want to have it so the user can just click on it and it automatically opens in a new window. Marty, I need to know the specific code that I need to add to the module tpl. Do you know what that code is and where in the tpl file I should add it? Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 then see nemo's post...like Marty told you.... Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 please note, the development area is for people interested in development......if you are not getting the exact 'how to' I can move this post to the paid section so you can get coding done for you. 1 Link to comment Share on other sites More sharing options...
holliej0 Posted October 24, 2013 Author Share Posted October 24, 2013 This is the file, but I don't know what the exact code is I need to add in order for one of the navigation links to open in a new window. http://shedtheeclectichome.com/autumnmegamenu.tpl Link to comment Share on other sites More sharing options...
NemoPS Posted October 24, 2013 Share Posted October 24, 2013 Just edit this: <a class="root_link" href="{$positions.link}"> like this <a class="root_link" href="{$positions.link}" target="_blank"> do it for every anchor tag you want to open a new tab with Link to comment Share on other sites More sharing options...
holliej0 Posted October 24, 2013 Author Share Posted October 24, 2013 This is great, thanks. However, now all links are opening in a new tab and I just want one of the navigation links to open in a new tab. How do I specify in the code below to just open the one link in a new window? <li class="root_menu"> {if isset($positions.link) && $positions.link != ""} <a class="root_link" href="{$positions.link}" target="_blank"> {$root} </a> {else} <span class="root_link"> {$root} </span> {/if} Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted October 25, 2013 Share Posted October 25, 2013 This is great, thanks. However, now all links are opening in a new tab and I just want one of the navigation links to open in a new tab. How do I specify in the code below to just open the one link in a new window? This is the very reason I said in my first response that you would need to hard code the link into the module tpl. Marty Shue Link to comment Share on other sites More sharing options...
holliej0 Posted October 25, 2013 Author Share Posted October 25, 2013 Marty - I know that - that is what I am asking for - the exact code that I need to put into the module tpl that will trigger only one of the links to open in a new window. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now