Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

mail_open
Modifying a theme - do i need to make a copy first?
David Patterson
Member
May 17, 2014 - 3:44 pm
Member Since: April 13, 2014
Forum Posts: 127
sp_UserOfflineSmall Offline

I removed the ‘We-re available 24/7. Call us now.’ image from my website which is part of the magento default ‘moderm’ theme. I did this by removing the following line of code:

CODE REMOVED:

<img src="getSkinUrl(‘images/media/footer_callout.png’);?>” class=”footer-callout” alt=”” />

LOCATION OF CODE:

app/design/frontend/default/modern/template/page/html/footer.phtml

My question is, is this the correct way of doing this or am i supposed to make a copy of the ‘modern’ theme first and make the changes to that. What will happen to the ‘modern’ theme during a magento update? Will the theme be over-written and therefore any changes i have made to it will be removed?

If a copy of the modern theme does have to be made how do i tell magento to look in that copy first?

Avatar
Matthew Ogborne

Founder
May 18, 2014 - 7:26 am
Member Since: July 18, 2013
Forum Posts: 4565
sp_UserOfflineSmall Offline

Hi David,

I’m going to keep this reply as simple as it should be :)

am i supposed to make a copy of the ‘modern’ theme first and make the changes to that

Yes you are :)

Magento has a fallback system that allows you to create a child theme, in the child theme if you make alterations, Magento will use them, also if a template file is missing from the child theme, Magento falls back to the default or base files (which is exactly why you should not edit anything in the base folder, they’re you’re omg save my * files!).

I don’t believe that Magento will let you make a child theme of a child theme (modern is a child theme), so what I would suggest you do is in “app/design/frontend/default/” duplicate the “modern” folder calling it “mymodern” and the same in “skin/frontend/default”, copying the modern folder to a new folder called “mymodern”.

Then in System > Configuration > Design, change the part where its says “modern” change it to “mymodern” and Magento will use the files in the two new folders called “mymodern”.

You can edit those files willy-nilly then and when there is an update, you still have the original modern files available to check against (tip, there is a tool called beyond compare, it has a free trial for 30 days or so and will come in very, very handy in checking the differences).

Does that make sense?

Matt

"Selling an item online is easy, but making living from a business that sells online, well that’s something different entirely!"

Ultimo Magento Theme

David Patterson
Member
May 18, 2014 - 1:59 pm
Member Since: April 13, 2014
Forum Posts: 127
sp_UserOfflineSmall Offline

@matt So just to check. I have gone into ‘System > Configuration > Design’ and made these changes:

config-design.jpgImage Enlarger

I also note there are settings related to the theme at ‘System > Design’ (see image below). So i also changed this to ‘modern-david’. Am i correct in making this change as well?

system-design.jpgImage Enlarger

PS i did a search for ‘magento beyond compare’ but nothing relevant turned up (its not that important as i will just make a note of the changes i have made to the theme).

sp_PlupAttachments Attachments
Avatar
Matthew Ogborne

Founder
May 19, 2014 - 5:11 am
Member Since: July 18, 2013
Forum Posts: 4565
sp_UserOfflineSmall Offline

Hi David,

That’s right all bar the last step, don’t use “System > Design” as that will catch you out later on when making changes.

For Beyond Compare see here http://www.scootersoftware.com…..reinfo.php

Matt

"Selling an item online is easy, but making living from a business that sells online, well that’s something different entirely!"

Ultimo Magento Theme

Steve S
Member
May 26, 2014 - 4:13 pm
Member Since: October 29, 2013
Forum Posts: 271
sp_UserOfflineSmall Offline

HI Matt,
I’d like to just jump into this thread as my question is similar.
I have not made a Child Theme (YET), and I plan to do it in next 2 days. I am using Ultimo, and the changes I have made are only in settings/CMS Blocks etc.
I have not made any code changes, but I do intend to make a couple – hence needing the Child Theme now.

Here’s my question:
If I make a copy (Child Theme) now, from the site design I have already created, will that be the base for any code changes I make, and also remain when I make future Theme updates?
I may be answering my own question here as I type, but just want to check :-)

Val

Avatar
Matthew Ogborne

Founder
May 27, 2014 - 7:15 pm
Member Since: July 18, 2013
Forum Posts: 4565
sp_UserOfflineSmall Offline

Hi Val,

Yes that’s correct. The changes come first in the child theme, magento then falls back to the original Ultimo theme (updated or not) and then to the base files.

Matt

"Selling an item online is easy, but making living from a business that sells online, well that’s something different entirely!"

Ultimo Magento Theme

 

Why Should You Join UnderstandingE?

 
  • Access to over 500 step-by-step video tutorials
  • +20 video courses available
  • Magento, M2E Pro, Magmi, eBay, Amazon & Design all covered
  • Everything is in 100% Plain English
  • Learn how to build your own multi-channel software for eBay & Amazon
  • Access to the community forums, meet fellow business owners like yourself

Join Now with 2 Clicks

 

Join now for less that £1 per day you can gain access to over 400 step-by-step video tutorials & learn how to build your very own multi-channel software.

 

Forum Timezone: Europe/London

Most Users Ever Online: 1012

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Jim @ Moogento: 688

Steve Froggatt: 514

Badeth - UE: 513

Jimbob: 453

Paul Cartwright: 414

Forum Stats:

Groups: 6

Forums: 37

Topics: 5222

Posts: 27488

Administrators: Matthew Ogborne: 4565, Dave Furness: 4606