Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @juliagr

    This error message shows up when the shortcode is inserted somewhere else than in a Single post or page.

    For instance, the shortcode works in a Sidebar when viewing a single post.

    But it will show this error message if it is displayed in the Sidebar of the Blog Archives.

    If you could point me to your website and the page/post where you tried to display the shortcode I would try to understand what is the exact issue.

    Thread Starter juliagr

    (@juliagr)

    here is the link to the page https://www.kolotwp2.com/this-week-at-kolot/

    it is in a single page that has a sidebar.

    Thank you for your answer.

    This post seems to be a Single post so I actually don’t know why the shortcode is not working as expected.

    I suppose there may be something interfering with the plugin’s functions,

    I’ve just made some changes to how the plugin handle is_single()

    Could you please try to updated MailChimp Campaign Displayer from your Dashboard and let me know if you still have the same issue?

    I’ve commit the update one minute ago so please give the WordPress’s repository a few minutes before it can make it appear in your Extension list.

    @juliagr Is this topic good to be marked as resolved?

    Thread Starter juliagr

    (@juliagr)

    sorry i haven’t responded yet; i am a freelancer and have been working on other projects. i will check tomorrow and let you know how it goes since you made the update. thank you very much!

    Thread Starter juliagr

    (@juliagr)

    thank your for your patience and support. it is still not working. here is a screenshot of the backend: https://imgur.com/RZBbVtr that shows that the campaign is linked, but still says “This shortcode only works when displaying a single post or page.”

    Hi Julia, this is strange as the shortcode is working on different test websites of mine.

    Please try to edit the code as follow :
    File : ola-mccp-functions.php
    Line : 219
    elseif ( !is_singular() ) { return ola_mccp_error_msg_single();}

    Please comment this line as this :
    // elseif ( !is_singular() ) { return ola_mccp_error_msg_single();}

    Save the file and check your page on front-end.

    Is the HTML version correctly displayed ?

    Thread Starter juliagr

    (@juliagr)

    It is not correctly displayed. Here is a screenshot of how the edited file, as you suggested, to make sure I did it correctly: https://imgur.com/x3AM5Pa.

    The front end still has the error message, and the backend still shows that the campaign is linked.

    I can give you login privileges if you need.

    Thank you!

    Hi Julia,

    Yes, it would be easier for me to fix the issue if I could edit the plugin directly from your website.

    You can send login details by email at plugins{at}olalaweb.com

    Hi Julia,

    As you will see, I’ve fixed the issue with the HTML shortcode.
    Now your newsletter is displayed in your page.
    I’ve saved the issue to be implemented into future updates.

    Now, regarding how the news is displayed, it has to do with your newsletter’s template which is based on Tables.

    It seems that your WP theme set tables’ width to be 100% when insert in .entry-content div.

    I suggest you use the One Column – No Sidebar template to display your newsletter ??

    Happy blogging!

    Thread Starter juliagr

    (@juliagr)

    thank you so much for all your help. i will definitely give a 5-star rating for support! however, the display of the email has strange spacing and it affects the whole page, not just the content area (ie the background color of the page is the background color of the email, not the webpage). do you know how to fix this?

    thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Single post or page?’ is closed to new replies.