inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Dec 16, 2013 19:10:19 GMT -8
I have built a plugin which at the moment displays right below the header on the home page, but I would like to move it somewhere else. How do I go about doing so?
Thanks.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Dec 16, 2013 23:16:05 GMT -8
There are many ways to do that. <script type="text/javascript"> function ContentDown(d) { var obj = document.getElementById(d); var currentPosition = parseInt(obj.style.top) var amountToMove = 30 obj.style.top = currentPosition+amountToMove+"pt"; } </script> That might help you to position it relative to the top of your page. // Move the paragraph from #myDiv1 to #myDiv2 $('#myDiv2').append( $('#myDiv1>p') ); This code moves two elements with the id of #myDiv where p is the tag that is moved and the first selector is the destination. www.elated.com/articles/jquery-removing-replacing-moving-elements/taken from this page It's really easy if you get the hang of it. You just have to know where you want to put it. You can even go into your theme's style and make a spot to append it.
|
|