You are hereSupport Forums
Search:  
How do I put some jQuery code on every page of DNN site
Last Post 26 Jun 2010 05:46 PM byRichard Edwards. 1 Replies.
AddThis - Bookmarking and Sharing ButtonPrinter Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessagesNot Resolved
skamber12
New Member
New Member
Posts:2

--
26 Jun 2010 03:02 PM  
UPDATE:  Got it to work.. had to include jQuery load statement in the injected head code.. even though I thought it was loading somewhere else in the templates.. ..

so now I have the jquery script I need injected on every page but the Injector module is showing on every page..
how can I hide the module but still allow it to work?   thanks


---------------original post----------------------------


I installed Injector for DNN v5 on my site and put this code in the head
( as seen with debug on)

 

<scrpt-tag>
$(document).ready(function(){ 
$("div.menu_style").append("<span style="float: right; padding-right: 15px;"><img src="http://mysite.com/portals/2/images/signal-menu-logo.png"></span>");
});</scrpt-tag>

 

This is code that works ok on my DNN pages when I run it in jQuery with Firebug script console..

 

How can I get this to work with Injector in head tags of all pages?

 

Thanks much!

Tags: jquery head injector dnn
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:902
Avatar

--
26 Jun 2010 05:46 PM  
Hi,

To hide the module container, just go into the module settings and check the hide container option. I think it's in the advanced section. You may have to do that before you check the 'show on all pages' option.


Richard Edwards
DNNStuff Founder
You are not authorized to post a reply.

Active Forums 4.1
Privacy StatementTerms Of UseCopyright (c) 2004-2010 DNNStuff