You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);
The below given code will display the the content added in “newPage.phtml”
{{block type=”core/template” name=”list-categories” template=”catalog/category/newPage.phtml”}}
<?php
//The following code will load the block with the given "identifier"
// on the phtml page
echo $this->getLayout()->createBlock('cms/block')->
setBlockId('identifier')->toHtml()
?>
To give image path you can use {{skin url=’yourimage.gif’}} .
You can use the following function to get site urls .
Below given are the function with different arguments
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) – http://magesite.extension/js/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) – http://magesite.extension/index.php/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) – http://magesite.extension/media/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) – http://magesite.extension/skin/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) -http://magesite.extension/
$currentUrl = $this->helper('core/url')->getCurrentUrl(); // Displays URL of the current page
Please include the following line in page.xml page to include js file from the your theme folder
<action method=”addItem”><type>skin_js</type><script>filename.js</script></action>
The path will be www.yourSiteName.com/skin/frontend/mind/extreme/js/filename.js
Please include the following line in page.xml page to include js file from the your theme folder
<action method=”addItem”><type>skin_js</type>filename.js</action>
The path will be www.yourSiteName.com/skin/frontend/mind/extreme/js/filename.js
<?php echo $this->getSkinUrl(‘images/your_image_name.jpg’) ?>
The function will return the full path of the image given as parameter .
Please follow the link
http://fishpig.co.uk/create-a-custom-theme-in-magento-1-4/comment-page-1/#comment-1185
Please follow the link
http://fishpig.co.uk/create-a-custom-theme-in-magento-1-4/comment-page-1/#comment-1185