Posts by elemis

110 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.

110 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… :)

110 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.

110 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?

110 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.

110 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

110 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 :(

110 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.

110 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.

110 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

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 :)

by
by
by
by
by
by