- This topic has 3 replies, 2 voices, and was last updated 7 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Education Hub Pro › Shortcode in News post?
Hi – Is there a trick for getting shortcode to appear in a Post displayed in the News section of the home page? I’m using the MaxButtons plugin to add a button to the content area of the post via shortcode, and my excerpt length is plenty long, but the button doesn’t show up. Same if I use shortcode for another plugin. Tried adding style=inline to no avail. Using Education Hub Pro. Thanks for any ideas!
Hello @grant-dev,
The short code wont be displayed in the News section of the home page .
Also it the third party plugin which not recommended by the theme so we cannot do anything much about it.
Hope this clears up the confusion .
Let us know if you have any theme related issue further .
Best Regards!!
Thank you very much for the reply. That makes sense.
As an alternative to the plugin shortcode, I tried adding the button as an image, but unfortunately that doesn’t seem to work either.
Are there any plugins that are recommended to go with your theme, or any other ideas for how I might get a button to appear after the News item excerpt?
Thanks again for your time!
Hello @grant_dev,
Actually the image or short code that is placed in the content area of the post will not display in the home page .
The theme has already provided the link Read more at the news section . But if you wish to show the link text as the button then we could help you with some custom CSS.
For this go to Admin Panel > Appearance > Customize > Additional CSS and paste below given CSS.
.news-post a.button {
background: #6081a7;
padding: 10px;
color: #fff;
}
Hope this helps.
Best Regards!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |