Title: Plugin: S2 Framework   Mod &#8211; Font &amp; Formatting Problem
Last modified: August 21, 2016

---

# Plugin: S2 Framework Mod – Font & Formatting Problem

 *  Resolved [Rox-1](https://wordpress.org/support/users/rox-1/)
 * (@rox-1)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-s2-framework-mod-font-formatting-problem/)
 * I installed S2 Framework, and seem to have set that up fine.
 * I found some php code which allows a non-paying level user to read part of the
   article, and then there’s a message directing them to register if they would 
   like to read more.
 * This is the code, which goes in the child functions.php file:
 *     ```
       <?php
       add_shortcode('dw-post-more','dw_post_more');
   
       function dw_post_more($atts,$content){
       	extract(shortcode_atts(array("level" => 0),$atts));
   
       	if(current_user_can("access_s2member_level".$level)){
       		return do_shortcode($content);
       	}
       	else {
       		return '<span style="font-family:Helvetica, Arial, sans-serif;font-size:14px;color:444444;"><a href="'.S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL.'">The rest of this article is for paid subscribers.  Click here to subscribe.  If you are a paid subscriber, you may not be logged in.</span></a>';
       	}
       }
       ?>
       ```
   
 * I’m using a 2012 theme, with all my changes in a child theme. 🙂
 * The big problem I’m having is that any content inserted within the shortcode 
   for this mod is formatted in the wrong font, colour and size. I added the “span
   style” html because otherwise the message came out in the wrong font too!
 * The shortcode is `[dw-post-more level="1"]EXAMPLE CONTENT[/dw-post-more]`. So
   in this example, the EXAMPLE CONTENT wording appears in a smaller, different 
   font in a different (lighter) colour.
 * I simply don’t know how to get the content inside the shortcode to format like
   the rest of the page. The only solution so far is to manually set formatting 
   html for every paragraph on the page – which is long winded and very time consuming.
   I’m sure there must be a better way.
 * My site is [http://www.inspireyourdog.com](http://www.inspireyourdog.com)
 * Although – as you’re not subscribing you can’t see it – you can see the sort 
   of font and size that appears on the paid for content if you go to the contact
   us page – because that font and size appears for the Contact Form – which is 
   a plug in.
 * I hope I’ve given all the correct information, and hope someone can help me from
   pulling my hair out – I’ve spent the whole day trying to figure this one out!
   😀
 * Thanks for reading.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Rox-1](https://wordpress.org/support/users/rox-1/)
 * (@rox-1)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-s2-framework-mod-font-formatting-problem/#post-4637842)
 * Just in case anyone else has a similar issue, I’ve found out what the problem
   was.
 * I copied the shortcode into the WordPress page, and for some reason, the copy
   and paste procedure put some extra formatting into the text section (I wasn’t
   looking there!). When you copy and paste (making sure it’s plain text), everything
   works fine with the right fonts.

Viewing 1 replies (of 1 total)

The topic ‘Plugin: S2 Framework Mod – Font & Formatting Problem’ is closed to new
replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Rox-1](https://wordpress.org/support/users/rox-1/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-s2-framework-mod-font-formatting-problem/#post-4637842)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
