ThemeForest

Posts by LovelessDesign

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hello,

Are there general rules what to to if I want to use a JS Script / Jquery Script in Wordpress.

I want to implement that script http://codecanyon.net/item/mettile-a-package-of-jquery-metro-ui-tiles/4158455 into my wordpress theme. The JS File starts with
(function ($) {
    $.fn.MetTileOne = function (options) {
        var metTileOneSettings = $.extend({...
and it usually (without wordpress) implements Javascript like this. But I think I don’t need that line because jquery is already implemented:
<script type="text/javascript" src="http://127.0.0.1:4001/wordpress/wp-content/themes/twentyeleven/js/jquery-1.8.2.js"></script>
123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says
Ok this one also helped for woocommerce: http://wordpress.stackexchange.com/questions/94097/one-comment-per-user-email-per-post

solved. thank you

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

So, I’ve done point 1 with if(is_user_logged_in) but how can I realize point 2?

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hello,

Do you have an easy way how I could realize (with woocommerce) that

1) Only registered user can post reviews.

2) Every registered user can post only one review per product.

Thank you

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Ok, I’ve done an extra version for <=IE8. Thank you

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

ok, so there is no way to make it work for the body element.

Should I use the DIVs with the image for all browsers or is it also a possibility to keep the background body tag in the other browsers and display the DIV only for <=IE8?

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Is there an easy solution or do I really have to change to a div with an image, especially for IE8 and IE7

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hello,

I know <=IE8 doesn’t support background-size. I need “background-size: cover” on my body for the background image. That’s why I used this filter, which works.

<!--[if lte IE 8]>
    <style type="text/css">
    body {
        -ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.jpg', sizingMethod='scale')";
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.jpg', sizingMethod='scale');
    height:1100px;
    }
    </style>
    <![endif]-->

As you can see I had to define a height because else <=IE8 stretches the image according to the height of the page. With this height, it works for my notebook window size but it still stretches the image if I have a smaller or larger window.

I want that the background always has the full width and the proportional height. If the page is higher, the backgroundcolor should be used (the other browser do this automatically).

Can you help?

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Thanks. That helped :)

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hello I would need a php syntax expert for a short question.

It’s in the WooCommerce Plugin. There are product attributes which all have an ATTRIBUTE NAME and a VALUE. Every value is divided by comma. Now, I want to just add Links to every by comma divided value.

This line is at the bottom in product-attributes.php:

echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values );

Every Value should have a link to a glossar, for example the value “Game” should have a link like http://xxx.com/glossar#game>

echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( '<a href="http://xxx.com/glossar#game">'.implode( '</a>, <a href="http://xxx.com/glossar#game">', $values ).'</a>' ) ), $attribute, $values );

How can I change it so that the word “game” in the link is always the actual value? It doesn’t work with something like $values or $values0

Would be great if someone could help

by
by
by
by
by