WordPress.org

Ready to get started?Download WordPress

Forums

Facetious
[resolved] css styling (3 posts)

  1. manthono
    Member
    Posted 1 year ago #

    Hey there. This is a great plugin that i have been searching for.
    The plugin works great. Only the lay out breaks/doesn't work well with my theme.
    How do I target the search form and fields using custom css?
    Can I hardcode the search form into my theme?
    thanks so much

    http://wordpress.org/extend/plugins/facetious/

  2. Simon Dickson
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you like the plugin!

    Yes, you can hardcode the form into the theme. In fact, that's how we would expect most people to use it. You can use a conventional WordPress template tag:

    facetious( array(
       ...
    ));

    or you might prefer to use:

    do_action( 'facetious', array(
       ...
    ));

    as this won't cause a PHP error if the plugin should ever be deactivated.

    One of the options you can specify in that array of arguments is id: that would allow you to target the Facetious form in CSS.

    The widget has a class facetious_form, which you could use, perhaps in conjunction with an ID for the particular sidebar.

  3. manthono
    Member
    Posted 1 year ago #

    Great! Thanks, Simon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.