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

  1. bhaz
    Posted 2 years 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" />';


  2. Christian Wach
    Plugin Author

    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

    Plugin is now updated with the filter in place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CommentPress Core
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic