Shortcodes in Newspaper theme

Posted in: Newspaper
Post count: 40

Hi,

One area I found the developer can work is shortcodes. Do we have any shortcode which allow me to create any information, caution or warning message box inside the post.

Yes there are are plugins or add styles manually in styles.css but when we update themes, it always become a headache.

Basically I need to create a box inside my post so thatt it can be used to emphasis some thoughts.

Regads
Siraj

Post count: 7909

Hi,

The theme allows shortcode (in post html editor or in the code) but you will have to create your warning message box using Visual Composer elements (for example in a text block), take the shortcode – http://screencast.com/t/FiPcJiIOjPSL and use do_shortcode function to add in the the template file(s) if you want to appear on all of your articles(as reference how this function is used) – https://forum.tagdiv.com/topic/move-the-bottom-article-ad-spot-below-the-share-bar/ or past only the shortcode in the post content – http://screencast.com/t/TzjVXW1Q4Ul

Thanks!

Post count: 40

I copied the code you mentioned, but it did not work for me. The shortcode method you said is too complex for me to understand. Sorry.

[vc_row][vc_column][vc_column_text] Sample text Sample Text Sample Text [/vc_column_text][/vc_column][/vc_row].

Let me try in another way..

I am trying to have a box inside the post where I can type. Right now, I am using QUOTE BOX Center for that. But it is always aligned to center. Can I align that to left and change the font from italic to regular. If you have any CSS for that, then it will be nice.

Please have a look at the screenshot: http://i62.tinypic.com/bv79x.png

Awaiting reply

Regards
Siraj

  • This reply was modified 10 years by sirajcmr. Reason: Need to add Image link
Post count: 40

Also, do you plan to better/make it easier people to all these stuff. I think it would be great.

Please add this request in your future feature list. Boxes like Warning, Information Box etc are very useful. As I am using SmartMag theme on one of the websites and we wanted to move to Newspaper theme in another 6 months, these small features play some roles in decision making.

Thanks and please check my question listed above.

Regards
Siraj

Post count: 7909

Hi,

Unfortunately the theme doesn’t any features like you want so you have to use a plugin shortcode or customize them via custom css like you already said and add it to you post content. You can also take a look to Formats(where you set the quotes) and you have there an option to highlight the text for example, but the same if you want more you will have to stylish using css code. I have added your request to our list and the developers will take a look on your request.

Regarding the quote box you can remove italic style from Theme Panel > Theme Fonts – http://screencast.com/t/prnEaXjtJipb also you can use this custom css in Theme Panel > Custom Css to align it left – http://screencast.com/t/ME18YSHV3

.single .td_box_center p {
text-align: left !important;
}

Hope this helps!

Post count: 40

This worked. Thank you.This will do my job for now.

Can I also change the background and font color. I hope we can. If you know the code, please let me know.

Thank you for adding my request to features list. Beause my other website we are using boxes everywhere and the information, warning boxes matter a lot.

Sometime, small small things makes a lots of difference 🙂

Thank you Alin 🙂

Post count: 7909

Hi,

Try to use this custom css and change the color how you wish(I guess that it will result something that you want – like a Warning Box) – http://screencast.com/t/WcHzDKk8f

.td_box_center {
background-color: #FFFF00 !important;
}
.td-post-content .td_box_center p {
color: red !important;
}

Hope this helps!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.