Skip to content

Instantly share code, notes, and snippets.

@jasontipton
jasontipton / local.xml
Last active December 23, 2020 16:49
Reorder and Add Class to Top.Links - Magento 1.9 Community Edition
<?xml version="1.0"?>
<!--
[Your site name] XML overrides
-->
<layout version="0.1.0">
<!-- updating top.links to add class names -->
<!-- Section 1: Removing Current Links -->
<default>
<reference name="top.links">
<!-- Removes 'My Account' link -->
/* Responsive styles created by Valentin Niklasson */
@media screen and (min-width : 954px) {
div.checkoutcontainer div.input-city { width: 45%!important; }
div.checkoutcontainer div.input-country select { width: 83%!important; }
div.checkoutcontainer div.input-city { width: 100%!important; }
div.checkoutcontainer div.input-region { width: 55.8%!important; }
div.checkoutcontainer div.input-address-short .input-text,
div.checkoutcontainer div.input-firstname .input-text,
div.checkoutcontainer div.input-lastname .input-text,
div.checkoutcontainer div.input-email .input-text,
@ijy
ijy / 1.pagination.xsl
Created September 15, 2013 16:24
Modified pagination utility for Symphony CMS to (optionally) allow it to work with other query string parameters. Add the pagination utiltity, import it into your page template, pass in required (and optional) paramaters, style with CSS. Examples included.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Name: DATA SOURCE PAGINATION
Version: 1.5
Author: Nick Dunn <nick@nick-dunn.co.uk>,
Nils Hörrmann <post@nilshoerrmann.de>,
Ian Young <i.young@me.com>
URL: https://gist.github.com/ijy/6572186
@Maksold
Maksold / local.xml
Last active May 28, 2021 20:02
#magento #xml - local.xml boilerplate
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->