How to add CSS & Javascript to Magento Themes?

How to add CSS & Javascript to Magento Themes?

Magento
In Web development JS & CSS files play a vital role, and work as a backbone or skelton of your website. While working on a Magento project you can do this into your Magento layout files. For adding JS or CSS, you can do this in xml layout files using methods/action: or Or You could do that by hard-coding your “head.phtml” file, but then those files will be loaded on all Magento pages. But this is not recommended at all. All methods reside in Mage_Page_Block_Html_Head class. The first pair is addCss and addJs. You can use or script or file tags, both are allowed. There is an XML configuration folder located in app/design/frontend/Package/theme/layout. The main one is called page.xml. In this you can add JS resources using below syntax: When…
Read More
How to add Responsive AdSense Ads?

How to add Responsive AdSense Ads?

HTML5, News
Google has introduced a new Responsive Design of Adsense which means that now a user can add Google ads of different dimensions corresponding to the viewport size (screen resolution) of the visitor’s device. For instance, if a visitor is reading your web page on desktop, you can choose to serve the large 728×90 (leaderboard) unit but if another visitor is viewing the same web page on a mobile phone, you can display the smaller 468×60 ad unit. The AdSense code detects the size of the visitor’s screen and serves the appropriate ad unit that will best fit the available space. You can serve responsive Google AdSense ads in both synchronous as well as asynchronous method. The asynchronous method is a more efficient and recommended method as the JavaScript ad code…
Read More

Got Project on mind? Let's ConnectContact Us

Secured By miniOrange