I would like to translate it to german but it says: This plugin is not properly prepared for localization. If you would like to translate this plugin, please contact the author.
]]>Button to use the grid shortcode is no longer displaying in post editor. We moved the site to a multi-site environment, not sure if that is what would be causing the issue? We have the plugin updated but when you are on the post editor the button to use the shortcodes will not display. Also using tinymce advanced, so I deactivated it to see if that was the problem but did not help. Any help would be appreciated.
]]>I use the version 1.0 of the plugin in a WordPress 5.4.1 that’s running on the Classic Editor.
Problem
When I insert rows and column shorttags on a following line, the rendered code renders paragraphs between columns. When I insert extra spaces between tags, the tags are rendered correctly. Including details for replication below.
Proposed Solutions
1. Ideal solution would be for the plugin to always strip out paragraphs and new lines between columns.
2. If the solution #1 is not an option please update TinyMCE plugin to render the tags with spacing that would generate accurate markup.
Thank you.
Problem replication
When I use the editor plugin it gives me the following code:
[GDC_row]
[GDC_column size="third"]
Your content here
[/GDC_column]
[GDC_column size="two-thirds"]
Your content here
[/GDC_column]
[/GDC_row]
Which renders as broken code:
<div class="gdc_row"><p></p>
<div class="gdc_column gdc_cthird">
<div class="gdc_inner">
Your content here
</div>
</div>
<p></p>
<div class="gdc_column gdc_ctwo-thirds">
<div class="gdc_inner">
Your content here
</div>
</div>
<p>
</p></div>
However, when I update the short tags to have extra spaces:
[GDC_row]
[GDC_column size="third"]
Your content here
[/GDC_column]
[GDC_column size="two-thirds"]
Your content here
[/GDC_column]
[/GDC_row]
The rendered HTML is correct:
<div class="gdc_row">
<div class="gdc_column gdc_cthird">
<div class="gdc_inner">
Your content here
</div>
</div>
<div class="gdc_column gdc_ctwo-thirds">
<div class="gdc_inner">
Your content here
</div>
</div>
</div>
]]>
I know nothing’s been done on this for a couple of years, but I’ve started using it to simplify more interesting post layouts.
However I spotted an issue in that the middle column (potentially every second column, but I’ve not needed 4 columns for anything yet) – that middle column’s content was narrower because of the padding. It was overstated by 20px, 10px on the left and 10px on the right.
I have amended my own CSS because I don’t think this is likely to get a response, but posting it to help others who may come across this plugin.
/* FJ update to fix weird middle column stuff*/
.gdc_cthird:nth-of-type(2) .gdc_inner{
padding:0 10px;
}
In reality this should be tested on quarter also, as that’s the only other one where a “middle” column will be generated.
Hope this helps!
]]>The impression I get from the screen shot showing the shortcodes is that your plugin uses HTML. If it uses CSS instead then the shortcode doesn’t need to be so involved. All you would need is the opening shortcode and the closing at the end of the text. Then include the option to set the number of columns, column width, and column break among other things.
]]>I note it says ‘not tested with latest version’? Although it works fine for me, and I do hope it has not been abandoned, as it is by far the best of this type of plugin that I have tested.
]]>