magento: how to add javascript to my main page? [closed] - magento

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am using Magento, and I don't know where to add js blocks, to be display in my main page (first page that comes up).
Where do I need to add the code?
Thanks

Depending on what you want to do:
to add a normal js file from you js folder go to you home cms page and switch to the tab "Design" under "Layout Update XML" you can add something like this
<reference name="head">
<action method="addJs"><script>your-js-file.js</script></action>
</reference>

Related

Is it possible to customize magento CSS and JS as our wish? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to change the entire Magneto CSS themes templates to the user wish? How to do it and what are the things to learn for it?
Go to
app > design > frontend > yourtheme > layout > local.xml
Then add a new file to overrule the default CSS rules:
<action method="addItem"><type>skin_css</type><name>css/custom.css</name><params/></action>
You can also add a custom JS file in the same location:
<action method="addJs"><script>custom.js</script></action>

How to create pages in the footer in magento [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have installed magento1.8.0.1, and also import sample data.
I added one more menus,
Now i want add pages like e-mail us, so i go to cms -> pages -> add new page ->. so it will be created, i want to know how to display that e-mail us page in footer.
Can anyone help me?
Thank you!!!.
There are various way, but for your quick reference:
Go to Magento Admin
Go to CMS Block
Edit Footer Links (Click on that name)
Do whatever changes you like and save that page.
Good luck!

Ajax and SEO. Will my loading part of the html be indexed by SE? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
So, I have an index.html file.
I load some div from another.html file like so: a href="another.html"
Then, in jQ, I'm using .preventDefault(); on this anchor tag before .load
Will my another.html file be indexed by Google, Yahoo and so on?
Yes. In fact, they way you did this is called Progressive Enhancement and is how dynamic website should be built as it allows for non-JavaScript enabled users to still get to the content. Good job.

Change Magento Layout on FAQ Page [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Can anyone assist me in changing the layout to 1column.phtml on the magento faq page? (mymagentosite.com/faq).
I have changed many lines in catalog.xml without luck.
Kind Regards.
If the faq page was created as a Magento CMS page you can change the layout of that one page by logging into admin then to CMS > Pages, click on the FAQ page, then under the Design section (left nav) you can change the layout template.
If you installed an FAQ type extension you will need to find the xml file of the extension itself in one of your themes.

Current Configuration Scope magento [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
There is Current Configuration Scope in the magento admin , what is the significane of that and from where we can ad and delete the seemingly useless dropdown in the "Current Configuration Scope:"
Magento has the very powerful ability to host multiple Stores and Websites on a single installation. The Configuration scope refers to which Website or Store that you are currently managing the settings for. So that drop-down is actually very important.
You manage the entries in the drop-down under System>Manage Stores, but you can read more on multi-store setups on the Magento wiki and these two blogs.

Resources