Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, I use WordPress 5.4.1 with theme Primer version 1.8.9 and The Events Calendar version 5.1.2

    I also use Molongui Authorship version 4.0.8., a plugin to display an author box in posts.

    I always use Classic Editor to create events, they look far better than Gutemberg Blocks Editor. And default Page template.

    I don’t know when (probably after an update) the author box started to display in events.

    I deactivate all plugins and switch to an unaltered WordPress theme (Twenty Sixteen). Then I enable Gutenberg Blocks Editor to create and publish an event, and later made some testing. Results:

    • With Gutenberg Blocks Editor disabled and default Event template selected, the author box is displayed.
    • With Gutenberg Blocks Editor enabled and default Event template selected, the author box has gone, but also the featured image and the boxes with event details at the end of the page.
    • With Gutenberg Blocks Editor disabled and default Page template selected, the author box is displayed again.
    • With Gutenberg Blocks Editor enabled and default Page template selected, two author boxes are displayed.

    Also found that old events (created with Classic Editor) have issues:

    • With Gutenberg Blocks Editor enabled or disabled and default Event or Page template selected, the author box is displayed.

    Hope this helps.

    I’ll try to downgrade and see if that fix the issue.

    Thanks dlo, I upgraded recently a site from 2.3.3 to 2.5 and has the same problem with pages, but after update rewrite.php and refresh permalinks the site works fine!

    Thanks again.

    Sorry for the delay: GD2 is a extension or library used to dynamically generate or manipulate graphic images within a webserver or within program scripts. You need your host provider loads or activate in PHP. To test if GD2 is active you can upload a page to your site with only this line of code <?php phpinfo(); ?> Then open your browser and go to this page, and you’ll see a lot of information. Search for a block entitled gd. If you found it, then gd2 is active, if you can’t found it, contact your host provider to activate gd2.

    Good luck.

    In my case the problem was gd2 not loaded. Once activated and the server restarted (I’m using a test environment) the thumbnail option is showed. As I can see, the previously uploaded images need to be deleted and uploaded again to generate and use the thumbnail.

    Hope this help.

    Sorry, I made two mistakes:

    1 – The class imagelink is included by WP in the anchor when you use a thumbnail with a link to the original image. The class alignright I mentioned before I include in the img tag. Ex.: <img class="alignright" ... />.

    2 – This align the image to right but only at body text level. I see again your example and now I note you need the title and meta are left-aligned like the body text.

    It appears to be difficult to do so… I can suggest you try creating two “sub container” div’s under the post-X div: post-left (floating to left) for all the title, meta and body text; post-right (floating to right) only for the image.

    Then, you’ll need delete the image reference in the body text (to avoid the image appears with the text) and use a function (*) to obtain the attachment link or the _wp_attached_file meta key. If _wp_attached_file meta key exists for the post, then the post has an image attached and you can load it in the post-right div.

    (*) Maybe one of this: the_attachment_link() or get_the_attachment_link() or get_post_meta(), is the more adequated to obtain the attached file URI.

    Hope this help.

    If the image has the class imagelink and I want to align it to right, I add float: right; to the class definition .imagelink in the CSS. If the image hasn’t the class imagelink I want to align it to right, I add the class="alignright" to image (in the HTML source) and define the class .alignright in the CSS with the same line float: right;.

Viewing 6 replies - 1 through 6 (of 6 total)