Title: Styling the code
Last modified: August 31, 2016

---

# Styling the code

 *  [michaelxxx](https://wordpress.org/support/users/michaelxxx/)
 * (@michaelxxx)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/styling-the-code/)
 * Hi,
 * I have the problem with this code line:
 * `return '<p class="bawpvc-ajax-counter" data-id="' . $id . '">' . $count . '</
   p>';`
 * because it generates a paragraph.
    I have the counter placed with a shortcode
   in a text like:
 * Photo Gallery (Visitors: **569**)
 * Now it like
    Photo Gallery (Visitors: **569** )
 * In version 2.19.13 the code was just
    `return $count;`
 * Do I need the class and date-id in the code?
    Or how can I define the first code
   that there is no <p> in it?
 * [https://wordpress.org/plugins/baw-post-views-count/](https://wordpress.org/plugins/baw-post-views-count/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [michaelxxx](https://wordpress.org/support/users/michaelxxx/)
 * (@michaelxxx)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/styling-the-code/#post-7050031)
 * ah, ok. found the solution:
    `return '<span class="bawpvc-ajax-counter" data-
   id="' . $id . '">' . $count . '</span>';`

Viewing 1 replies (of 1 total)

The topic ‘Styling the code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/baw-post-views-count_ffffff.svg)
 * [Post Views Count (Support caching plugins!)](https://wordpress.org/plugins/baw-post-views-count/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/baw-post-views-count/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/baw-post-views-count/)
 * [Active Topics](https://wordpress.org/support/plugin/baw-post-views-count/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/baw-post-views-count/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/baw-post-views-count/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [michaelxxx](https://wordpress.org/support/users/michaelxxx/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/styling-the-code/#post-7050031)
 * Status: not resolved