Posts by OriginalEXE

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Never add the css to a style tag to an item, it’s just bad practise

It might not be ideal but sometimes it’s the only (reasonable) way.

@RD-Themes You are definitely allowed to add inline css to your elements/shortcodes, but you must make sure only what is dynamic goes there.

For example, if you were to have shortcode that outputs DIV section with certain background image, you should do it like this:
$bgimage = bla_bla_get_image_url();
echo '<div class="bgcover" style="background-image: url( ' . $bgimage . ' );" />';
and then in your css you can add additional rules that do not have to be dynamic, like:
.bgcover {
background-size: cover;
}
What is not allowed is to also add inline those additional rules that are not dynamic, like this:
$bgimage = bla_bla_get_image_url();
echo '<div class="bgcover" style="background-image: url( ' . $bgimage . ' ); background-size: cover;" />';
1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

No problem,

I recommend this package for creating archives: https://github.com/gruntjs/grunt-contrib-compress

You might also need https://github.com/gruntjs/grunt-contrib-cssmin for css compression, and https://github.com/gruntjs/grunt-contrib-uglify for js.

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

I would suggest you to look into Grunt: http://gruntjs.com/

By combining several Grunt packages you can easily create a task that will create a complete .zip archive of everything you need for your upload.

Takes a bit to learn how to do it but once you set up your task, you just run a console command and you have everything ready for upload, saves a lot of time :)

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says
1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

This is a function I used for triggering click event without jQuery, did not try it in IE though. Found it online and it worked for what I needed it for.

    function fakeClick( anchorObj ) {

        if ( anchorObj.click ) {

            anchorObj.click()

        } else if ( document.createEvent ) {

            var evt = document.createEvent("MouseEvents"); 
            evt.initMouseEvent("click", true, true, window, 
            0, 0, 0, 0, 0, false, false, false, false, 0, null); 
            var allowDefault = anchorObj.dispatchEvent(evt);

        }

    }
1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

I don’t see here screaming, she is just surprised by something. If she were screaming, I feel her eyes would be more threatening, not they are not.

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Just a note, the person that uploads a file for you does not have to submit the item too.

Once the item is uploaded, it stays on Envato’s server for a bit so he can just notify you about the upload, you log in and create a submission (file he uploaded will be listed in the dropdown for you).

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

I don’t think so, we do it here for quite some time (we’re not even in the same countries) and had no issues.

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Hey @Sam,

it seems like some image dimensions in your blog post are not correct. I’m not sure about other entries, but MCGRAPHICS’s entry links are not linking to the image dimensions it says they are.

Congrats to all those that entered!

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Did you try official WordPress REST API that’s in development? https://github.com/WP-API/WP-API

by
by
by
by
by
by