Posts by LovelessDesign

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

Hello,

For example I’m on mysite.com/2013/04/20 where it displays all the posts of that day. I want to have a navigation (you can switch between the archive days).

BUT if 2013/04/21 doesn’t exist, it should jump to 2013/04/22.

I usually use this code: <?php get_day_link(‘year’, ‘month’, ‘day’); ?>

Is there a way to automatically get the next day where posts exist?

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

Hello,

I’m using the following code to include a custom menu item to the end of my primary menu. Do you have a solution to make the custom menu item appear between two menu items (which are created in the wordpress admin menu).

add_filter( 'wp_nav_menu_items', 'your_custom_menu_item', 10, 2 );
function your_custom_menu_item ( $items, $args ) {
    if (is_single() && $args->theme_location == 'primary') {
        $items .= 'Show whatever';
    }
    return $items;
}
145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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>
145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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

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

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

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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

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

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

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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?

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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

145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 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?

by
by
by
by
by
by