• Resolved Anonymous User 17419542

    (@anonymized-17419542)


    Hello,

    I want’t to add some HTML after the navbar logo. I googled and tried everything I found, but I am not able to modify the function which is located in inc/views/main/class-hestia.header.php

    Here is the function I want to change in my child template:

    	/**
    	 * Do the navbar header.
    	 */
    	private function navbar_header() {
    		?>
    		<div class="navbar-header">
    			<div class="title-logo-wrapper">
    				<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>"
    						title="<?php bloginfo( 'name' ); ?>">
    					<?php echo $this->logo(); ?></a>
    			</div>
    			<?php
    			if ( $this->is_full_screen_menu() ) {
    				$this->navbar_sidebar();
    			}
    			?>
    			<?php $this->render_navbar_toggle(); ?>
    		</div>
    		<?php
    	}

    I would appreciate the perfect hint ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • What are you looking to add? If you do something like

    <div class="title-logo-wrapper">
    				<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>"
    						title="<?php bloginfo( 'name' ); ?>">
    					<?php echo $this->logo(); ?></a>
    			</div>
    			<p>This is some HTML</p>

    The This is some HTML text shows up right under the logo in the main navigation

    Thread Starter Anonymous User 17419542

    (@anonymized-17419542)

    Thanks for the answer.

    The html itself is perfectly clear for me.

    I think you got me wrong: In my child theme I wan’t to write a function, add a filter or whatever to modify the mentioned HTML code. I want to inject <p>This is some HTML</p> from the child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify Hestia_Header’ is closed to new replies.