Community Forums › Forums › Archived Forums › Design Tips and Tricks › In Beautiful Pro – Make site header background image linkable
Tagged: background, Beatiful Pro
- This topic has 1 reply, 2 voices, and was last updated 10 years, 12 months ago by
andym119.
-
AuthorPosts
-
February 16, 2014 at 3:44 am #90601
stickershock
MemberThe Beautiful Pro theme demo displays an image below the header area of the site using the WordPress custom background feature.
How can I make that background image linkable?
I would like visitors to be able to click the background image and be taken to the main site.
The blog is here at The Quillcards Blog
http://quillcards.com/blog/February 19, 2014 at 2:48 am #91098andym119
MemberI don't think there is an easy solution to do this, I have been told before it is not possible. However I have managed to work out a way of doing it but I have created my own child theme on the genesis framework so I am not 100% sure the best way to make php and css edits in genesis own child themes such as beautiful pro, you'll have to ask in the forum.
I managed to link the header by creating a new widget area then uploading an image and linking it by an excellent image widget plugin. The extra benefit of doing this is the image becomes an img tag in the html and so it will respond to the screen size/mobile like your current images do in your post.
First download the image plugin, it is called 'Image Widget' it's a popular and highly rated plugin. You can test how it works by moving the widget in one of your sidebar widget areas, selecting an image then typing the link. the image is now linked and the image also responds in ratio as the screen gets smaller. Basically you want to do this, but instead, you want to move the widget to a new widget area so the image will appear in the same place as your current header.
You'll need to ask how to create a new functions.php for your theme as I'm not sure how.
To Register a new widget area type in your custom functions.php:
genesis_register_sidebar( array( 'id' => 'header_banner_widget', 'name' => __( 'Header Banner', 'custom' ), 'description' => __( 'This is the widget area for the Header Banner', 'custom' ), ) );
To position the widget area type in your custom functions.php:
add_action( 'genesis_after_header', 'custom_header_banner' ); function custom_header_banner() { genesis_widget_area( 'header_banner_widget', array( 'before' => '<div class="header-banner widget-area">', ) ); }
(you can change the hook genesis_after_header if I have the wrong hook for your theme, look up http://genesistutorials.com/visual-hook-guide/ )
You can now move that image widget to the new widget area you created called Header Banner, upload an image, select size, and link it .
You may also need to remove the old header banner height by typing in a custom css file or css editer:.site-header-banner { display: none; }
Seems a lot of work just to link the header but this setup works perfect for my child theme and the responsiveness is improved.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.