How do I find and edit PHTML files in Magento Go? - php

May I know how do I find and edit PHTML files in Magento Go? Read some places in forums that PHTML files cannot be edited. Wanted to confirm if that's indeed the case.
Saw this on a forum when I was searching on how to get rid of white spaces on the left and right of a product image in the grid view:
http://www.magentocommerce.com/boards/viewthread/177178/
Secondly we will have to change the way the image is rendered or
displayed when requested by magento, the file we need is list.phtml
which can be found in
“app/design/frontend/your_theme/template/catalog/product/list.phtml”.
First, search for the code below and change the values of;
resize(170), width="170", height="170" in the values of your image.
Resize 170 specify’s height thus if you image is 210x170 it should
look like below.
It shows that I have to find and edit the list.phtml file, however, I can't seem to find it, less edit it. CSS is fine as I know I can edit the "edit custom.css" under Design Editor in Magento Admin. Can someone please help me regarding the phtml files? Desperately seeking help.
Really appreciate your time and thank you so much in advance!
Cheers,
Matt

Magento Go does not allow you to modify the phtml files.
However, for modifying the dimensions of your images, you can do that according to the Magento Go Documentation.
http://go.magento.com/support/kb/entry/name/changing-the-size-of-catalog-images/
Go to Design > Themes Editor > Customize (Theme) > Catalog Images
Modify the dimensions of your images, then save.

Related

Easy Google Fonts Wordpress Plugin not supporting with in Free Theme Parallaxsome

I am working in a website on wordpress with a free theme and I want to change font styles of site title, main menu or menus of specific divs. I tried to install Easy Google Fonts plugin but theme is not supporting it. When I activate it following error is showing
Fatal error: Class ‘WP_Customize_Section’ not found in …wp-content\themes\parallaxsome\inc\customizer\parallaxsome-customizer-classes.php on line 386
I asked about it from theme author and he let me know to contact plugin author.
https://accesspressthemes.com/support/topic/i-want-to-change-font-family-of-site-title-and-main-menu/#post-70747
After that I asked plugin author of Easy Google Fonts and waiting for reply.
https://wordpress.org/support/topic/plugin-is-not-supporting/
Please let me know the solution. If some body knows.
Thank you in advance!
One solution would be to hard code your changes in the theme's style.css file.
You can find the file following this path - wp-content > themes > yourtheme > style.css
Open this file using a file editor and you will be able to edit all the styling, including the font.
It will help if you use the source code as a reference so that you can find the correct classes and ids that are associated with the element.
It's pretty simple to change the font, you can use this as a reference to find the one you want - https://css-tricks.com/snippets/css/css-font-families/
EDIT: Here is an easier way that your client would perhaps understand if they have a very basic knowledge of CSS - https://www.inmotionhosting.com/support/edu/wordpress/change-wordpress-appearance/change-font-globally
Alternatively, there are a ton of other plugins that will do the same thing as the Google Fonts plugin. For example: https://wordpress.org/plugins/use-any-font/
Hopefully, this will provide you with enough information to help.

order posts on one category by order

I already searched for solutions but have no idea where to put PHP code found on this site. No one shows how to edit CSS for the years list. I want to make a certain category to show all posts in gallery mode (grid) and to make it yearly filtered exactly like this one:
items in grid. Please excuse me but I really don't know how to explain it better than showing this example and I really don't want to make an ad or a link to this website. I have not found any other way.
Such things are usually accomplished by the use of an archieves.php file in the root of your wordpress theme directory.
So I would suggest just find this file and edit it to your needs: Edit the code to display it as a grid.
You can add your CSS inline but I would not recommend that. Just place your CSS inside one of the files that come with your theme. Mostly they are placed inside your themes directory in a folder called 'styles' or 'css'. Often theres a file especially for custom user styles. Of course you also can create your own one and reference it inside header.php or even import it in one central CSS file.
Here is a little link (did not look into it but maybe thats useful since you already have the CSS code to display items as grid):
Display all wp-posts

how to make a product image clickable and redirect to product details site in wordpress/woocommenrce/uncode theme

I couldn't find a tutorial or hint regarding making a product image in the wordpress theme "uncode" clickable. when clicking on the product image, it only opens the image in full size but doesnt rather redirect to the details page.
I assume it isn't a big thing that needs to be changed/added, but finding it seems quite difficult, as I have no experience regarding this theme at all.
thanks upfront!
EDIT: What I am trying to find out, is how to make this (tutorial for another theme https://slocumthemes.com/2015/10/how-to-make-woocommerce-thumbnails-clickable/) for my theme, uncode.
can anybody help? I think I found the line of code in one of the php files, but I have no proper experience of php
You can override woocommerce template.
Create a folder named woocommerce in your uncode theme and further corresponding folders where relevant file is added in woocommmerce plugin. e.g woocommerce/templates/single-product/product-image.php.
In that overridden file you can customize the HTML i.e link your image.

Wordpress at hover change the featured Image

i using the portfolio-theme studio 9 from simon bouchard.
A great theme with powerfull options.http://themes.simonbouchard.com/studio9/works/
now i would like to change the view of the work-section.
the featured image should change at hovering.
i search fpr the term and found a lot of stuff but always very special and i don´t know to code it in my theme. i´m not good at php or java.
my idea is to work with custom fields and to add a line of code that the image change to the custom field at hovering. i hope it is so simple and you can help me to fix the problem.
thank you so much!
i saw the effect at this page http://heydays.no and found it very very fresh.
The site you like uses ajax to cycle through multiple images when the block is hovered. Your theme probably does not support that. I suggest you look for a theme or plugin that offers the effect you want out-of-the-box. This one comes close and you may be able to set it to do a complete image switch instead of an effect. But the effects actually look cooler to me than the image switch.

Get images out of product description in phtml file

as the title might let you suggest I have trouble to get image URL's out of product descriptions in my custom phtml file (located in template folder).
In cms pages/blocks you can use
{{media url="wysywig/Banner/image.jpg"}}
which we do for parts (headlines) of our product descriptions.
Now when I try to display that description out of my phtml file with
<?php echo nl2br($productResult[$i]->getDescription()); ?>
the description gets loaded but the image URL's dont get converted to total
URL's like for example "/media/wysywig/banner".
I know that you have to use Mage::getUrl("media") in php/phtml files though this information doesn't help much in my situation.
The only idea I have is to set a string function to search for
{{media url="wysywig/banner/image.jpg"}}
and replace it with
Mage::getUrl("media/wysywig/image.jpg")
but I kinda feel like this isn't a very elegant solution.
Or is it the only way? Any help is appreciated.
Much thanks and greetings mpfmon
It doesn't work because it was not planned for the product description to have such media call:
{{media url="wysywig/Banner/image.jpg"}}
However there is nothing wrong doing this, to make it work, you have to filter your description with a widget function:
echo Mage::getSingleton('widget/template_filter')->filter($description);
You must enable "Allow Dynamic Media URLs in Products and Categories" setting in Catalog section of Magento configuration screen. (See attached image)

Categories