Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1337330

    I am using the WP Knowledgebase plugin. The plugin adds a shortcode which you put on a page to create the knowledgebase there.

    The plugin is working fine. When I use the default editor, I add a “shortcode” block, enter the shortcode, and the page works as expected. However, the styling is incorrect. The whole page has the background color of the header, and the page content is right up against the left side of the page.

    When I switch to using the Advanced layout editor, it converts the shortcode block to a text block, and puts the shortcode in there. But visiting the page just renderes the shortcode as text rather than rendering the shortcode. I also tried using the ‘code block’ block (which in the description states shortcodes can be used) and get the same result.

    Please advise on how to either use shortcodes within the advanced layout editor, or how to have page content correctly styled while using the block editor.

    Thank you.

    #1337387

    Hey FRBjess,

    Where can we see and reproduce the problem you are having?

    Best regards,
    Rikard

    #1337803

    Hi Rikard,

    Thank you for the response. Unfortunately the site is within our internal network and is not available publicly. However I can give you steps to reproduce (and can provide additional info if you need).

    Wordpress 5.8.3
    WP Knowledgebase Plugin Version 1.3.4 (free version) located here https://wordpress.org/plugins/wp-knowledgebase/
    Enfold Theme Version 4.8.8.1 (no child theme)
    Import the business flat demo

    Create three pages
    KB_test_1 – Switch to the default editor. Enter some page content, just a line or two of text. My result: the text appears in the standard page template as expected, with a white background and appropriate padding between the page content and the window border/header/footer.

    KB_test_2 – Switch to the default editor. Use the shortcode block. Enter the knowlegebase plugin shortcode. Find the shortcode in Admin Panel -> Knowledgebase -> Settings -> General Settings -> Knowledgebase Slug. My slug is ‘knowledgebase’ so I entered [knowledgebase] in the shortcode block. Publush the page, and the shortcode will appear as text. Then go back to Admin Panel -> Knowledgebase -> Settings -> General Settings. Set the knowledgebase main page to KB_test_2. Also set Enable Search to true in the Knowledgebase Search section. Save changes. Refresh the page. My result: the knowledgebase page appears, with search at the top and categories of articles showing. However, rather than standard page styling, the page content is completely up against the header and the left side of the page, and the background color is set to a dark blue (but not the same as the header as I originally believed). See the linked screenshot for more detail.
    KB-issue

    KB_test_3 – Switch to the advanced layout editor. Add content elements – code block. The instructions for this block specifically state you can use plugin shortcodes here. Add the shortcode the same as from the previous step. Leave all other settings as their defaults. Save and publish the page. The shortcode will display as text. Now go to Admin Panel -> Knowledgebase -> Settings -> General Settings. Set the knowledgebase main page to KB_test_3 and save. Reload KB_test_3. My result: shortcode continues to be displayed as text and does not render.

    I have another site that uses a different theme where using the shortcode renders the plugin content inside of the page container – that’s my desired behavior. If for some reason you are unable to replicate the issue, any information you can give me about using plugin shortcodes with enfold would be helpful.

    Thank you.

    #1338108

    Hi,

    Thanks for the update. I had a look at the plugin in question and it doesn’t look like a very popular plugin, and it has not been updated for over a year either. Maybe you could try an alternative plugin? We could try to reproduce the problems you are pointing out, but fixing compatibility issues for a plugin with only 3.000 active installations would not be a priority in our development process.

    Best regards,
    Rikard

    #1338309

    Hi Rikard,
    I understand your reluctance to investigate a relatively unpopular plugin. Would you be able to give me general information about using plugin shortcodes? Are they supported at all in the advanced layout editor? Are there other plugins with shortcodes that are known to work with the advanced layout editor so I could see a working example?
    Thank you.

    #1338360

    Hi,

    Thanks for the update. Plugin shortcodes should work in both the Text Block and Code Block elements. In your case, it sounds like the shortcodes are actually working, but not rendered properly?

    Best regards,
    Rikard

    #1338521

    The shortcode is working (but not rendering properly within the page container) when using the default editor. When using the advanced layout editor, the shortcode is not working at all.

    #1338603

    Hi,

    Thanks for the update and clarification. Maybe you will have better luck with an alternative plugin?

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.