WordPress.org

Ready to get started?Download WordPress

Forums

CommentPress Core
[resolved] A way to provide a fixed hyperlink to the header? (3 posts)

  1. bhaz
    Member
    Posted 10 months ago #

    Hi there,
    is there a place i can add a link to the header logo?
    I can only find a div tag for the header, in header_body, but this does not seem to affect the logo. Have tried to add a hyperlink in the functions.php file with no effect:

    // show the uploaded image
    echo '<img src="'.$options['cp_inline_header_image'].'" class="cp_logo_image" '.$style.'alt="Logo" />';

    http://wordpress.org/plugins/commentpress-core/

  2. Christian Wach
    Member
    Plugin Author

    Posted 10 months ago #

    Hi bhaz, I've added a filter for you called 'commentpress_header_image' in my GitHub repo where you can download a zip file of the updated plugin. It'll be included in the next release, so you'll be able to upgrade without concerns.

    If you're using a child theme (I provide a basic one here), you can also use the 'cp_template_header_body' filter to include a custom header_body.php file of your own making.

    Cheers, Christian

  3. Christian Wach
    Member
    Plugin Author

    Posted 10 months ago #

    Plugin is now updated with the filter in place.

Reply

You must log in to post.

About this Plugin

About this Topic