Posts by elemis

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Thanks guys, we appreciate your support.

@wpCanyonThemes, good luck with the sales on your new template. Especially with the tough and rude clients that don’t really know what they need :) that probably will want columns inside columns inside columns inside columns… :)

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says



This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?
It doesn’t break for me, do_shortcode allows shortcodes to be nested. You could provide more details, but make sure you have closed all shortcodes properly.

For example when there are columns inside columns it breaks. Or list shortcode inside list shortcode. But if there is a list shortcode inside column shortcode it works without problems.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Put this in functions.php.
function remove_wpautop($content) { 
    $content = do_shortcode( shortcode_unautop($content) ); 
    $content = preg_replace( '#^<\/p>|^<br \/>|

$#’, ’’, $content ); return $content; }

Example/Usage:

add_shortcode( 'blockquote', 'blockquote_shortcode' );
function blockquote_shortcode( $attr, $content = null ) {
    $return .= '
’; $return .= remove_wpautop($content); $return .= ‘
’; return $return; }

This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Hello

@fabiodebortoli, have you been able to solve the font issue? You could ask us for the font files with Portuguese support. If you can send us an email using the contact form on our profile page we can help you.

@sevenspark, you’re very kind to answer however we think we shouldn’t help this much without being sure if someone has purchased the item or not.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Hello again,

Thanks a million for all the suggestions. You’re the best :D

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

function formatter($content) {
    $new_content = '';
    $pattern_full = '{(\[raw\].*?\[/raw\])}is';
    $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
    $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
    foreach ($pieces as $piece) {
        if (preg_match($pattern_contents, $piece, $matches)) {
            $new_content .= $matches[1];
        } else {
            $new_content .= wptexturize(wpautop($piece));
        }
    }
    return $new_content;
}
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
add_filter('the_content', 'formatter', 99);

[raw]Content without Paragraphs[/raw]

Thanks you for your support. However surrounding shortcodes with another shortcode probably will be too complex for some users :(

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

p tags in shortcodes?

When writing posts with shortcodes

 [divtag]
 abc
 [/divtag]

ends up as

< div >
<p>abc</p>
<p>< / div ></p>

We want to get rid of this automatically generated p tags.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Hello guys,

Is there a way of only removing p tags that are generated inside shortcodes? We don’t want to use wpautop filter. The clients should still be able to format their text by line breaks. But when this is being applied in shortcodes it messes up shortcode output.

We reeeeeally reaaaally need to solve this :)

Any help would be appreciated. Thanks in advance.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

We have the same issue of cufon not working in Opera here: http://themes.iki-bir.com/lcs/ This is an updated version of our theme. Cufon is working on its previous versions on Opera.

We use HTML5 . Previous version is also HTML5 but it’s working there. So I’m guessing that can’t be the problem. Nevertheless we tried changing the doctype to strict but it didn’t help. There aren’t any empty CSS files either.

Opera version was 10. We upgraded to 11 but it didn’t help either.

We tried couple of different things but no luck.

Could anyone have an idea what’s causing this?

Well it got solved after removing some style related stuff from admin panel :)

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says



Please read the wiki, you can not resell an item from one of the marketplaces on another Envato marketplace, even with an extended license.

But on the item page of the contact form there is this information besides “extended license”

“Extended Licence: a website template for sale (including on ThemeForest or ActiveDen) “

And we used completely different form we purchased with extended license on the html version. It was not purchased from envato marketplaces.

Hey elemis,

No worries, I just looked into this for you. Check your email, you should be good now ;)

Thank you for getting back to us in a short time. We always take license issues seriously so having such a problem devastated us. Anyway it is over now :)

Have a good day…

by
by
by
by
by
by