Home Forums Basel support forum Add button in header

Add button in header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5477

    Josuealfa
    Participant

    Hi! How can i add a button in the header

    #5502

    Artem Temos
    Keymaster

    Hello,

    Unfortunately, this header layout doesn’t have any area for your custom text/buttons/images. But as a workaround you may turn on “My account links” in the header option in Theme Settings -> Shop -> My account. Then place this code into functions.php file in your child theme

    <?php	
    function basel_header_block_header_links() {
    ?>
    	<div class="header-links">
    		<a href="http://yoururl.com"><img src="http://your_image_path.jpeg"></a>	
    	</div>
    <?php
    }

    Regards

    #5515

    Josuealfa
    Participant

    I´ve just added the code and now my page appear an error

    Parse error: syntax error, unexpected ‘*’ in /homepages/32/d648126883/htdocs/clickandbuilds/JOUXBE/wp-content/themes/basel/functions.php on line 166 🙁

    http://www.jouxbe.com

    #5523

    Artem Temos
    Keymaster

    You need to place this code to child theme functions.php not into basel/functions.php. Set up your child theme first (you can find zip file with child theme in a package downloaded from themeforest).

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)