No category image in category layout view?

  • Woony Danny
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 2 months ago #35661 by Woony Danny
No category image in category layout view? was created by Woony Danny
When in a category layout page, I dont want to display the category image. So i removed the image but got a big orange "Image Coming Soon" image displayed.

Is there a way to not display anything? eg no image at all?

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #36894 by Judith Carrell
Replied by Judith Carrell on topic Re: No category image in category layout view?
I came back to the forum today with this very thing in mind.

I don't want category images displayed at the top of the product pages. I get the big orange box, too.

I won't be displaying category pages at all and would like to know where I can delete the code where the category image is called for each product list page.

Thanks again!
Judith
Attachments:

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
11 years 1 month ago #36908 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Re: No category image in category layout view?
Hi again Judith,
As default, I am showing category image there. You can edit file to delete it. Actually, you can put file in template of your site to overwrite the file in EShop. Following is how:

Copy file: components/com_eshop/themes/default/views/category/default_category.php to folder: templates/your_template/html/com_eshop/category/default_category.php and edit this php file to remove image. It is very clear.

Please let me know if you are able to do that.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago - 11 years 1 month ago #36946 by Judith Carrell
Replied by Judith Carrell on topic Re: No category image in category layout view?
Hello Giang,

For others who want to get rid of the big orange box (and all main category images on the product pages), I opened the file /yoursite/components/com_eshop/themes/default/views/category/default_category.php. The code for this file is as follows:

<?php
/**
* @version 1.1.3
* @package Joomla
* @subpackage EShop
* @author Giang Dinh Truong
* @copyright Copyright (C) 2012 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
// no direct access
defined( '_JEXEC' ) or die();
?>
<h1><?php echo $this->category->category_name; ?></h1>
<div class="row-fluid">
<div class="span4">
<img class="img-polaroid" src="<?php echo $this->category->image; ?>" />
</div>
<div class="span8"><?php echo $this->category->category_desc; ?></div>
</div>
<hr />

---FTP into your account, select this file and delete the following portion of the code:

<div class="span4">
<img class="img-polaroid" src="<?php echo $this->category->image; ?>" />
</div>

Voila! No image in that position on the product listings pages. It does NOT delete the "big orange box" (or your selected main category photos) for the main category page.

Thanks again, Giang!

Best regards,
Judith
Last edit: 11 years 1 month ago by Judith Carrell.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
11 years 1 month ago #37009 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Re: No category image in category layout view?
OK Judith,
It is simple. Thank you for sharing it here for other users.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong