Miro4994
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Text-align doesnt work in my column shortcodeNope i didnt. However it works well, the shortcode is working but text-align inside the shortcode isn´t working.
Forum: Fixing WordPress
In reply to: Text-align doesnt work in my column shortcodeIt doesnt work even if i repeat the text align within the shortcode.
I´m not using a plugin, its my own column shortcode but im 100% sure that its was coded well.
add_shortcode('one_third', 'one_third'); function one_third($atts, $content = null ) { return '<div class="one_third">'.do_shortcode($content).' </div>'; }(function() { tinymce.create('tinymce.plugins.one_third', { init : function(ed, url) { ed.addButton('one_third', { title : 'Column 1/3', image : url+'/MCE-icons/ico_1-3.png', onclick : function() { ed.selection.setContent('[one_third]...[/one_third]'); } }); }, createControl : function(n, cm) { return null; }, }); tinymce.PluginManager.add('one_third', tinymce.plugins.one_third); })();Forum: Fixing WordPress
In reply to: Text-align doesnt work in my column shortcodeThe code works, but not for my shortcodes…
When i´ll press for example text-align center button for a simple text and my shortcode it will not works… It will looks like this:
In editor:
<p style=”text-align: center;”>Text without shortcode
[one_third]Column Shortcode[/one_third]</p>On page:
<p style=”text-align: center;”>Text without shortcode</p>
<div class=”one_third”>Column Shortcode</div>
Viewing 3 replies - 1 through 3 (of 3 total)