I have a problem with magento 1.7 (WYSIWYG).
My problem is that I can't have a proper description of the product when I use the WYSIWYG.
For example if I write in the WYSIWYG my product description, on site web site I will have a presentation which isn't the same.
The WYSIWYG puts html tags for each line return.
Thank you for your help
I've found in the past that with some themes the description is run through the nl2br function first. This will replace all new lines with <br> tags. Look in your view.phtml template file for this and remove the nl2br function.
It could be that you have custom css on the front causing it to appair different, view source both the admin (WYSIWYG) and on the website to see if the html are the same. If they are the same then check your custom css
In the file description.phtml in the template/easytabs folder, I removed the nl2br.
And then it works fine.
Related
I want to add extension - All Category Product Carousel in my Magento Website and it has RWD theme.The components of the extension are by default installing in:
app/design/frontend/default/default/layout
app/design/frontend/default/default/template
skin/frontend/default/default
I have moved the components in my theme folder i.e. RWD, and components are now in the following folders:
app/design/frontend/rwd/default/layout
app/design/frontend/rwd/default/template
skin/frontend/rwd/default
But after this also the extension is not working. I am new to Magento so does not know much things about it. Does anything else be done?
The products are there but css and js is not getting applied on them. The data is showing like: Please View Here
You can paste your extension key here. Now you can check if you have copied all the files to RWD.
The extension tell to insert below block in cms page. Include it in your cms->home page.
{{block type="pcarousel/pcarousel" pcarousel_id="carousel id" template="pcarousel/pcarousel.phtml"}}
After that navigate to system->permission->blocks->Add new block and add the type pcarousel/pcarousel there and allow it.
The css and js files were not loading in the main page, have added them externally. Now working
I am trying to add some code to a Joomla site just before the tag. I have never used Joomla before but from what I read up it should be something like this -
Log on to: http://www.yoursite.com/administrator/
In the top menu select: "Extensions" > "Template Manager"
Now select the template which is marked as default and click "Edit"
In the template edit page click "Edit HTML"
Or index.php file from your template folder however when I do both of these options the only thing there is:
<?php
if (class_exists('T3Template')) {
$tmpl = T3Template::getInstance($this);
$tmpl->render();
return;
} else {
//Need to install or enable JAT3 Plugin
echo JText::_('Missing jat3 framework plugin');
}
Any ideas where I can find the normal HTML markup with the tag?
Thanks for the help.
The markup for your template would normally be in /templates/template_name/index.php but your joomlart template uses a framework (which is not standard joomla, but common practice amongst large template providers). You should look into joomlart documentation, so you can make sure you will follow their best practices. From a quick glance at their forums, try looking at the \plugins\system\jat3\jat3\base-themes\default\page\default.php file (see here: http://www.joomlart.com/forums/showthread.php?55256-Add-code-before-lt-body-gt-amp-lt-head-gt&highlight=template+edit+jat3)
In a standard Joomla template, you would find the code inside abovementioned index.php.
You can find the template files at following location:
*Your_Base_URL/templates/mynewtemplate/*
Im trying to locate certain javascript code in the codebase with no luck. This code appears in the head of every page. Note that it isnt a link to a file but certain code embedded in the head. I have tried the following ways but no luck
local.xml
head.phtml
page.phtml and all page templates
page.xml
Text search in codebase with keyword and
keyword '{variablename}'
Database search keyword '{variablename}'
but no results so far
Have a missed something? Any help would be really appreciated.
Thanks,
Loveleen
Assuming that the page templates still generally reflect the native Magento structure, if it's in the <head> of the page, then it can only be coming from one of three places:
The page template (1column.phtml, 3columns.phtml, etc.).
The <head> include file head.phtml.
An include of one of the first two.
I know you said you already looked in both of those places, but you can help narrow down the source by comparing what you can see in those locations with what you see in the generated page source. Is the analytics code you're trying to locate before or after something you can see in those template files?
Also make sure that you're looking in the template files of the correct theme.
Ok got it.. it was under System>Config>Design>Misc Scripts
I have just launched an online clothing site using magento 1.7.0.2. I would like to add “With Free Shipping” or an image after the price on both the product and catalogue pages. I have tried the advice given in previous articles but have not had any luck.
I am using the Mercado theme from 8theme but using the template path hints the price appears to be generated by frontend/base/default/template/catalog/product/price.phtml which I understand is a core magento file.
Despite this there is a short price.phtml in the Mercado theme directory. This file only contains the line <?php echo $this->getPriceHtml($_product, false, '_clone') ?>. I have added an echo command below this but this has had no effect (even after a cache refresh). I have followed advice on the magento forums regarding an addition to this file but this also have no effect on the frontend.
You can copy the file frontend/base/default/template/catalog/product/price.phtml into the folder for the Mercado theme, and edit it there. I don't know what the exact path is for the theme you are using, but the file should end up in a location like frontend/package/theme/template/catalog/product/price.phtml.
BTW, I found this site the other day. It has lots of useful resources. One of them is the Magento Design Guide - which has a good explanation of Magento's theme fallback model, among other things.
i want to change default template in phpbb3. for this where i have to made changes. i am trying to changes file inside style/subsilver2/template...but i didn't made any right .please help me ..in which file i have to made changes.i have also try in admin section in style..but not successes... if any one have clue..please help me.
Thanks
Manish
It depends what part of the page you would like to change, since the template is a set of many HTML files with preprocessing instructions. They are located in:
[PHPBB_Folder]/styles/[Theme_Name]/template
You can find the right html file by searching for a specific part of source code copied from the live page of the forum.
Important note: when you're changing phpBB template files, don't forget to reset the template cache in the forum admin panel (go to Admin / Styles tab - and clear cache for what you changed, Template, Theme, or Imageset.
I hope this helps.