WordPress.org

Ready to get started?Download WordPress

Forums

custom text box above a particular teaser (2 posts)

  1. wyczes
    Member
    Posted 1 year ago #

    Hi there,

    Please look at the following code that generates a custom text box above teasers on my home page. However, I would like to display this text box only above a particular teaser not all of them. Could anybody help me with that?

    function custom_text_box() {
    global $thesis_design;
    	if (!is_home())
    
    ?>
    <div style="width: 600px; font-family: arial; font-size: 16px; font-weight: bold; color: #2361a1; padding: 12px; border: 3px solid #ccc; margin-bottom: 20px;">
    Isn't this a nice custom function?
    </div>
    <?php
    }
    add_action('thesis_hook_before_teaser_box','custom_text_box');

    many thanks

    M

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags