WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Adding border to [THUMBS]
  • Print
Pages: [1]   Go Down

Author Topic: Adding border to [THUMBS]  (Read 10894 times)

Offline svsanchez

  • Posts: 589
Adding border to [THUMBS]
« on: July 07, 2014, 11:17:26 PM »
Hello WB community, today I would like to add a border to the thumbs in Bakery. I guess I have to do this with css but how exactly and which page should I modify? I thought I would something related to thumbs in the modules/bakery/frontend.css file but that wasn't the case...
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #1 on: July 07, 2014, 11:21:43 PM »
whats your bakery version?
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #2 on: July 07, 2014, 11:32:26 PM »
bakery 1.70  // frontend.css  // line 85

Code: [Select]
.mod_bakery_item_thumb_f {
        border: 1px solid #ff0000;
}

additional possible (but you have to play the values)

Code: [Select]
img.mod_bakery_item_thumb_f{
        padding: 2px; /* for a space between border and image */
        height:70px;  /* for the same height for every thumb */
}
Logged

Offline svsanchez

  • Posts: 589
Re: Adding border to [THUMBS]
« Reply #3 on: July 08, 2014, 12:02:15 AM »
Hello Jacobi, I'm using Bakery V.1.6 but I found the line you posted. Unfortunately when I add the code you sent nothing happens!
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #4 on: July 08, 2014, 12:32:52 AM »
work with the same method in Vers 1.6, but is in line 125

Code: [Select]
.mod_bakery_item_thumb_f {
        border: 2px solid #ff0000;
}

maybe you have another css-definition for the whole page like my example here

Code: [Select]
.art-article img, img.art-article {
    border: 0;
    margin: 0;
}

do youhave a link to the page?
Logged

Offline svsanchez

  • Posts: 589
Re: Adding border to [THUMBS]
« Reply #5 on: July 08, 2014, 12:42:02 AM »
Hello Jacobi, this is strange, in my bakery the .mod_bakery_item_th umb_f line is in 85 as you said in your first reply. This is the link to the page:

http://detodoendanza.com/pages/catalogo/zapatos/puntas-de-ballet.php

Thanks for looking!
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #6 on: July 08, 2014, 09:15:36 AM »
Quote from: svsanchez on July 08, 2014, 12:42:02 AM
Hello Jacobi, this is strange, in my bakery the .mod_bakery_item_th umb_f line is in 85 as you said in your first reply.
maybe, i change something in the first lines


to the problem...
your page doesnt load the frontend.css Use this code in the head of the template-index.php
Code: [Select]
<?php
   
if(function_exists('register_frontend_modfiles')) {
   
register_frontend_modfiles('css');
   
register_frontend_modfiles('js');
   }
   
?>

or put the the code from the bakery-frontend.css into your template css-file
Logged

Offline svsanchez

  • Posts: 589
Re: Adding border to [THUMBS]
« Reply #7 on: July 08, 2014, 05:49:52 PM »
Hello Jacobi22, thanks a lot for your suggestions. I tried both ways (adding the code to my template index, and adding the frontend.css code to the template css) but none worked :(

I currently have both changes made. What am I doing wrong?
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #8 on: July 08, 2014, 05:55:02 PM »
it works, but the settings are "not correct"

your bakery frontend.css  //line 49

delete this in line 49 -> border: medium none;

.mod_bakery_main_th umb_f {
    border: medium none;
}


see next posting
« Last Edit: July 08, 2014, 06:01:19 PM by jacobi22 »
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #9 on: July 08, 2014, 05:58:54 PM »
wait a minute  mod_bakery_main_thumb_f is the main thumb in the oberview. if you need a border around this main thumbs, you have to change this line 49 (and not delete)

but i think, it looks better, if you dont use a border or use a grey border on this place (like #cecece)
« Last Edit: July 08, 2014, 06:00:48 PM by jacobi22 »
Logged

Offline svsanchez

  • Posts: 589
Re: Adding border to [THUMBS]
« Reply #10 on: July 08, 2014, 06:34:11 PM »
Hello Jacobi, YOU SIR ARE THE MAN!

That did it thanks a lot!
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Adding border to [THUMBS]
« Reply #11 on: July 08, 2014, 06:51:44 PM »
i hear the same from my wife every day   :oops: :wink:

make another changing, i'm sure, you love it

bakery/frontend.css  at line 46

change the original code
Code: [Select]
.mod_bakery_main_td_f {
    text-align: center;
}

to

Code: [Select]
.mod_bakery_main_td_f {
    text-align: center;
    vertical-align: top;
}
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Adding border to [THUMBS]
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2