Hello nana,
Please use the following code to add custom banner image before header.
add_action('cb_before_header','buddydev_custom_banner_image'); function buddydev_custom_banner_image() { // replace by your link url. $link_url = 'https://google.com'; // replace image url with your image url. $image_url = 'http://localhost/dev/slideraddons/wp-content/uploads/2017/03/323H.jpg'; printf('<a href="%s"><img src="%s" /></a>', $link_url, $image_url ); }
Thank You
RaviHi!
I put in mi fuction.php Child theme:
add_action(‘cb_before_header’,’buddydev_custom_banner_image’);
function buddydev_custom_banner_image() {
// replace by your link url.
$link_url = ‘https://my_url_web.com/’;
// replace image url with your image url.
$image_url = ‘http://public_html/wp-content/uploads/2017/02/fond.jpg’;
printf(‘‘, $link_url, $image_url );
}But it doesn´t work…
- This reply was modified 7 years, 8 months ago by nana.
Sorry, I copied and pasted with error earlier. It was like this:
add_action(‘cb_before_header’,’buddydev_custom_banner_image’);
function buddydev_custom_banner_image() {
// replace by your link url.
$link_url = ‘https://my_web.com/’;
// replace image url with your image url.
$image_url = ‘http://public_html/wp-content/uploads/2017/02/fond.jpg’;
printf(‘‘, $link_url, $image_url );}
Not works
- This reply was modified 7 years, 8 months ago by nana.
The topic ‘ [Resolved] Fullwidth header and user menu’ is closed to new replies.