Custom Post Widget
[resolved] widget block div class? (3 posts)

  1. brandcrafted
    Posted 2 years ago #

    I would like to apply a class to each content block <div>. I am not getting any class output just a plain <div>. I want to style the block output, margins etc…


  2. Johan van der Wijk
    Plugin Author

    Posted 2 years ago #

    Hi brandcrafted,

    You can define the html markup of your widget in your functions.php file.

    Changing the <li> tag to <div> in the example on this page should do the trick: http://codex.wordpress.org/Function_Reference/register_sidebar

  3. virtuality_x
    Posted 2 years ago #

    Hi, congratulations, the plugin is very useful..
    but I can not see css like <h1>,<h2>...<p> or <div> class...

    I changed what you said, but nothing happend..
    i am using Ari theme
    i can use php and css in another widgets but not in yours...
    maybe the problem is in the content block and not in the widget..
    could you help me...

    many thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.