I'm trying to override the file
modules/cheque/views/templates/hook/infos.tpl
in my theme so that I can change the icon it displays because it's hardcoded however my override doesn't seem to work.
I've placed my overrided .tpl file in this directory:
themes/mytheme/modules/cheque/views/templates/hook/infos.tpl
I've also cleared the cached files in cache/smarty/compile/*
Am I missing something perhaps?
Related
I am new to magento 2 and I am making css changes in luma theme on below path.
But after content deployment I lost my css changes.
Please help me in that.
/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
You should not edit/modify files within pub/* or vendor/* directory.
Pub is for deployment and vendor is for default structure, which you
override via your template or custom modules
Instead:
create a new theme inside app/design/frontend/{vendor}/{yourTheme}/.
You can use Blank or Luma theme
You can also create new theme which inherites from Blank (inheritance
is defined within theme.xml). If you are already using some theme
then skip this step.
edit .less within your theme so the changes stay visible and don't
get replaced when clearing the cache or upgrading the system.
Use grunt to compile your .less into deployment files.
You can also setup sourcemaps to pin point your styling within the
theme .less files so you can be more productive.
if you want to override only css file then you don't need to compile it. so follow above steps , change your css and clear the cache. it will worked.
I'm using Magento Ver. 1.8.1.0 and I'm trying to make a child theme of a free theme I've downloaded. I already try to create the following folders copying all files I need from the original theme
public_html/atacadomiranda.com/app/design/frontend/my-pack/my-theme
public_html/atacadomiranda.com/skin/frontend/my-pack/my-theme
Also tried to make a folder called 'custom' inside of the main theme folder where is 'default' folder. Make all changes in DESIGN section of CONFIG ADMIN SESSION. I tried to do some changes to footer.phtml (just for be sure it's working), and no changes are made at all.
What I'm doing wrong?
It worked by changing the System->Config to 'custom' folder inside of parent theme folder.
I need to override a file in one of my extensions. I don't want to modify the file directly, I would prefer to override it with a local file.
The original file is located at
app/design/frontend/aw_mobile/iphone/template/page/1column.phtml
My themes folder is located at
app/design/frontend/PACKAGE-NAME/default
I tried putting the new file at
app/design/frontend/PACKAGE-NAME/aw_mobile/iphone/template/page/1column.phtml
But that didn't work. Any suggestions?
Thanks I could really use the help!
When I make a change to “app/design/adminhtml/default/default/template/page/head.phtml” or other files in the adminhtml folders, the changes I make have no effect on the site. The site seems to be using old versions of my files but I have no idea where it is getting them from. I have deleted the cache multiple times and logged in/out of admin. I’ve also managed to turn on path hints in the admin panel and can see that the correct files are being used but the code in the files is incorrect. If I rename the file to _head.phtml then as you'd expect, the styling, js and meta tags etc go missing but when I make a simple edit to that same file the change is not reflected.
I recently upgraded from 1.6.2 to 1.7 - Am I missing something?
Basically I have a module I installed, it is in the modules folders as well, but the css I need to change is in the media folder. How to I override this, do I use the HTML folder in my template folder somehow?
Probably the simplest way is to have a specific CSS file in your template, with selectors that override the standard module CSS. Unfortunately, Joomla doesn't have a standard way of checking for template versions of module or component CSS, in the way it does for view files.
Use the CSS hierarchy to have your override CSS rules loaded AFTER the default module CSS rules, and they will take precedence. Make sure your override CSS file is the last one loaded by the template.
How is the original CSS file loaded? Does the module load it in its template file or someplace else? If it is loaded in the template, just override the template file and change the lines that load that file. If it's not loaded in the template, it is probably loaded just before rendering the template. In this case, the solution is also to override the template and load your own css file which will contain rules to override the ones in the original file. In this case, unfortunately, the original file will be loaded in addition to your css file. It amounts to an extra http request but it's probably not a big deal.