Posts by elemis

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
elemis says

Hello,

We noticed that we can purchase our own items which was not available before? Is it a new feature or a bug? :)

Screenshot: http://cl.ly/3X3s25332V2L0T290Z3F

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
elemis says

Fabio, Please send us an email using the contact form on our profile page: http://themeforest.net/user/elemis The form is available but if you don’t see it please login into themeforest.

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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… :)

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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.

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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?

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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.

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
elemis says

Hello again,

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

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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 :(

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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.

111 posts
  • Has referred 1000+ members
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+5 more
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.

by
by
by
by
by
by