About this topic

  • Posted by elizabethanne 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is resolved

Tags

  1. I've set up a new gallery and want to allow users to favorite images. I added [favorite] to my layouts editor, but instead of getting the star, as expected, I'm getting the word "fav" and clicking on it produces no behavior that I can see on the page. Two questions:

    1) is the default supposed to be a star, that when clicked upon changes color etc?, and
    2) is it possible to change the image for the favoriting?

    Thanks!

  2. Hi EA,

    That is a bit odd. I just tested on this site and it's giving me the star. The "fav' you're getting is because this is actual html. The star shows up through some CSS magic:

    .bwbps-fav-container {
    	z-index: 50;
    	width: 18px;
    }
    a.bwbps-fav-link {
    	display:block;
        height:22px;
        text-indent: -9999px !important;
        width:18px;
        outline: none;
    }
    
    a.bwbps-fav-0 {
    	background:transparent url(images/star0.png) no-repeat;
    }
    
    a.bwbps-fav-0:hover {
    	background:transparent url(images/star1.png) no-repeat;
    }
    
    .bwbps-fav-1 {
    	background:transparent url(images/star1.png) no-repeat;
    }

    That's in bwbps.css

    1) Yes the default is the star...when clicked, you get a yellow star
    2) You could replace the star images in the images folder with your own. Be aware of the widths set in the CSS if your image has differing widths.

    Cheers,
    Byron

  3. got it! the issue is that i am not loading the bwbps.css file, so once i added that css into my layouts editor css, it worked like a charm.

    thanks byron!

  4. Welcome.
    BB

RSS feed for this topic