WordPress.org

Ready to get started?Download WordPress

Forums

Standout Color Boxes and Buttons
[resolved] How to use with the More-quicktag? (4 posts)

  1. jester6581
    Member
    Posted 7 months ago #

    Hi,

    Great plugin. Was looking for something like this a long time.

    One question and I hope i am the right place to ask.
    How can I use the buttons in the more tag. So,when <!--more--> (i think that is the code) is inserted in the html editor the final result on the blog page would give a button with the text Read on, or whatever I want it to be.

    THanks for the help,
    Sander

    http://wordpress.org/plugins/standout-color-boxes-and-buttons/

  2. jester6581
    Member
    Posted 6 months ago #

    Solved this one, but partially: now the twentyten_auto_excerpt_more( $more ) functions shows the code for the standout button. I see the (...) and then the text [color-button color="bkgreen" href="http://www.whatever.top/text/"]Lees verder[/color-button] on the search results page. The code is working with the manual inserted <!--more--> tags though.
    Any ideas?

    It seems that the plugin is not used in the auto_excerpt or search

    Using wordpress 3.8.1

  3. jester6581
    Member
    Posted 6 months ago #

    Just found out: the plugin files don't get referenced in the wp_footer() call when used on a search page. So, missing the two lines with <link id=sccb ...>

  4. jester6581
    Member
    Posted 6 months ago #

    Okay, found a workaround for it...
    Using twentyten theme and my theme as a child theme

    In my theme css I added the referenced classes .sccb-button-... (four entries)
    In my theme functions.php I already had a customized read_more function which is referenced in loop.php from the_content() through a parameter and from the auto_excerpt_function in the twentyten theme.

    My customized read_more function checks if is_archive or is_search is true and then the returned code is a bit different. This way I have the result I want with a bit less flexibility. I can use this until this plugin works with the auto_excerpt function from the twenty_ten theme.

Reply

You must log in to post.

About this Plugin

About this Topic