Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
How To Insert code

rickowens
Registered User
Quote
2024-02-21 22:41:37

Someone please tell me how to add a snippet of code just BEFORE the </body> tag on my RC homepage.

The insert HTML code will not do this...I don't think. I want to manually insert the code before the </body> tag.


niko
Moderator
Quote
2024-02-22 08:34:48

Place a HTML Code element as last element on your page, ucheck the "create div around code" option, then double click it and write the code.


rickowens
Registered User
Quote
2024-02-22 17:55:44

Thanks niko - like this?

Insert - Code - HTML?

If so, I do not see option to uncheck "create div around code."

Also, my code must go immediately before the </body> tag.

If I placed the code in the local copy of my RC Index page would that work?


niko
Moderator
Quote
2024-02-23 08:49:51

The option is in the property window.
Yes, just move the element to the bottom of the page. Then it is just before the closing body tag.


rickowens
Registered User
Quote
2024-02-28 16:57:33

Have no idea what I am doing wrong but I cannot get my code to insert just before the end body tag.

I tried to follow your instructions above but - I do not see any option to "uncheck the "create div around code" option, then double click it and write the code." The only box I see with a check in it states external CSS.

Also - I use containers. At the bottom of my page I have a container as well. How to I place a new container BELOW this last container? I see no option for this and scrolling does not work.

I thought I could create a new container and place my code inside and that would do the check...Yes or No.


Rick Owens
Guest
Quote
2024-02-28 16:59:46

Is there no way/option for me to open the RC code on my computer, enter my code, and then save and publish?


micaelo
Registered User
Quote
2024-02-28 18:57:52

At the bottom of my page I have a container as well. How to I place a new container BELOW this last container? I see no option for this and scrolling does not work.

-> Reduce the width of the last container temporarily, let's say to 70%
-> If the container is right-aligned, center it temporarily
-> Move the cursor to the right of the container
-> Hit the Return key to create empty space below the container
-> Set the container's width and alignment back to the initial settings.


rickowens
Registered User
Quote
2024-03-01 23:51:21

wrote:
At the bottom of my page I have a container as well. How to I place a new container BELOW this last container? I see no option for this and scrolling does not work.

-> Reduce the width of the last container temporarily, let's say to 70%
-> If the container is right-aligned, center it temporarily
-> Move the cursor to the right of the container
-> Hit the Return key to create empty space below the container
-> Set the container's width and alignment back to the initial settings.


Thank you. I found that I could click OUTSIDE of the last container, hit Enter, and insert a new container.

My problem is this:
I need to insert some javascript immediately before the end body tag. When I did this the script was showing on my website. So, I had to delete the new container to make this go away.

What is the correct method to insert javascript? Any idea?


lamplighter
Registered User
Quote
2024-03-02 05:32:28

What I would do it:

Drop a "Javascript Code" component from the right of the screen onto your page.
Make sure this component is the last thing on your rocketcake page.
Doubleclick the component and put in your javascript. Note this component already handles the script tags.
Once that is done, you right-click on the Rocketcake page and select "HTML code..." which brings up your page source and see if it's close enough to the bottom for you.


rickowens
Registered User
Quote
2024-03-02 23:32:17

lamplighter - thank you

What do you mean "Note this component already handles the script tags."?

Here is code similar to the code I need to install:

<script type="text/javascript"> var penlinks_pid = XXXXXXX; var infolinks_wsid = 0; </script> <script type="text/javascript" src="//resources.pen.com/js/penlinks_main.js"></script>

So...

1. Click where I want to install the code
2. Click on JavaScript code
3. Double-click and insert WHAT into the box? (using above code example)


lamplighter
Registered User
Quote
2024-03-03 13:52:47

I would try

var penlinks_pid = XXXXXXX; var infolinks_wsid = 0; </script> <script type="text/javascript" src="//resources.pen.com/js/penlinks_main.js">


and by "handles the script tags" I was referring to that is inserts an opening and closing script tag for you.


rickowens
Registered User
Quote
2024-03-03 23:53:19

Thank you lamplighter. It worked.

I installed a new container and placed the code inside there. For some reason I cannot get the container centered on the page - the JavaScript code shows as centered but in RC the container is on the far left. I want it centered. Width is set at 1040 - like the other containers on my page.

How can I force the container to set centered?


erik
Guest
Quote
2024-03-04 09:28:23

Depends on how your code works, but usually, you can check the option "create div around code" and then select the box in rocketcake and click the "center text" button on the top of the editor.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact