Notifications
Clear all

wpForo 1.x.x [Solved] Third party shortcodes not working

10 Posts
2 Users
2 Reactions
1,831 Views
Posts: 9
Topic starter
(@nawaz10)
Active Member
Joined: 5 years ago

I am trying to display a quiz from "WP Quiz" plugin using a shortcode [wp_quiz id="1128"] 

But the shortcode always displays as a plain text. There is no quiz addon for WPforo & I have already purchased the embed addon but nothing seems to work?

 Any other to display the third party shortcodes?

I don't want to embed the blog post I only want the shortcode to be displayed directly in the forum body.

9 Replies
Sofy
Posts: 4860
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @nawaz10,

Please navigate to Dashboard > Forums > Settings > Features admin page, enable the "WordPress Shortcodes in Post Content" option, then delete all caches and check again. 

8 Replies
(@nawaz10)
Joined: 5 years ago

Active Member
Posts: 9

@sofy

Thank you very much. It worked!

(@nawaz10)
Joined: 5 years ago

Active Member
Posts: 9

@sofy

But the css & layout is all broken

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4860

@nawaz10

Please provide us the following example URLs:

  • 1. How it looks in wpForo post content
  • 2. How it looks in other posts/pages 
(@nawaz10)
Joined: 5 years ago

Active Member
Posts: 9
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4860

@nawaz10

Please navigate to Dashboard > Forums > Settings > Styles admin page, put the CSS code below in the "Custom CSS code"  textarea, save it, delete all caches and check again. The issue should be solved. 

.wq_questionTextWrapper.quiz-pro-clearfix {
clear: none !important;
}

.wq_questionTextWrapper.quiz-pro-clearfix {
height: 60px !important;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr {
background-color: var(--wq-background-color, #ecf0f1) !important;
color: var(--wq-font-color, #5f5f5f) !important;
border: 3px solid transparent;
padding: 5px 7px !important;
margin: 0 0 15px 0 !important;
border-radius: 3px !important;
line-height: 30px !important;
}

.wq_singleAnswerCtr .wq_answerTxtCtr {
font-size: 18px !important;
padding-left: 25px !important;
}

Please don't forget to press Ctrl+F5 (twice) on the frontend before checking to reload the updated CSS file.  

(@nawaz10)
Joined: 5 years ago

Active Member
Posts: 9

@sofy

The blocks are looking nice but they are not functional now. (When you select the answer it should turn red for wrong answer and green for a correct answer. Right now it's doing nothing) 

Try clicking on the answer on both links and you will understand what I am saying. 

 

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4860

@nawaz10

This issue doesn't come from the wpForo plugin. You should contact the WP Quiz plugin and let them know about the issue. wpForo is only responsible for the embedding of the shortcode in the post content. 

(@nawaz10)
Joined: 5 years ago

Active Member
Posts: 9

@sofy

Thank you very much for the help!