Home Forums Pro Themes Education Hub Pro URL Notice link in new Tab

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17604
    Valerie
    Participant

    Hi,

    In Header Options I need to open URL Notice Link in new tab of Internet Explorer
    The same need for Powered by in Footer Options
    Thank you in advance.

    #17639
    wensolutions
    Keymaster

    Hello @ITHQ

    To open URL Notice Link and Powered by in Footer Options in new tab, you need to create and activate child theme for that.

    You can take reference from below link to create child theme.

    https://codex.wordpress.org/Child_Themes
    https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/?utm_expid=3606929-81.6_x2aktJQ2qbOSnTRGna0w.0&utm_referrer=https%3A%2F%2Fwww.google.com.np%2F

    After successfully creating and activating child theme, the main within child theme’s folder would be style.css and functions.php.
    Now in your child theme’s functions.php file you need to copy and paste below additional code:

    
    function education_hub_get_notice_ticker_content(){
    
    		$tickers = education_hub_notice_ticker_details();
    		if ( empty( $tickers ) ) {
    			return;
    		}
    		ob_start();
    		?>
    		<div id="notice-ticker">
    			<div class="notice-inner-wrap">
    				<?php foreach ( $tickers as $key => $ticker ) : ?>
    					<div class="list">
    						<a href="<?php echo esc_url( $ticker['link'] ); ?>" target="_blank"><?php echo esc_html( $ticker['text'] ); ?></a>
    					</div>
    				<?php endforeach ?>
    			</div> <!-- .notice-inner-wrap -->
    		</div><!-- #notice-ticker -->
    		<?php
    		$output = ob_get_contents();
    		ob_end_clean();
    		return $output;
    
    	}
    	function education_hub_footer_copyright() {
    
    		// Check if footer is disabled.
    		$footer_status = apply_filters( 'education_hub_filter_footer_status', true );
    		if ( true !== $footer_status ) {
    			return;
    		}
    
    		// Footer Menu.
    		$footer_menu_content = wp_nav_menu( array(
    			'theme_location' => 'footer',
    			'container'      => 'div',
    			'container_id'   => 'footer-navigation',
    			'depth'          => 1,
    			'fallback_cb'    => false,
    			'echo'           => false,
    		) );
    
    		// Copyright content.
    		$copyright_text = education_hub_get_option( 'copyright_text' );
    		$copyright_text = apply_filters( 'education_hub_filter_copyright_text', $copyright_text );
    		if ( ! empty( $copyright_text ) ) {
    			$copyright_text = wp_kses_data( $copyright_text );
    			$copyright_text = education_hub_apply_theme_shortcode( $copyright_text );
    		}
    		// Powered by content.
    		$powered_by_text = education_hub_get_option( 'powered_by_text' );
    		$powered_by_text = apply_filters( 'education_hub_filter_powered_by_text', $powered_by_text );
    		if ( ! empty( $powered_by_text ) ) {
    			
    			$powered_by_text = wp_kses_post( $powered_by_text );	
    			$powered_by_text = education_hub_apply_theme_shortcode( $powered_by_text );
    		}
    	?>
    
        <?php if ( ! empty( $footer_menu_content ) ) :  ?>
    		<?php echo $footer_menu_content; ?>
        <?php endif ?>
        <?php if ( ! empty( $copyright_text ) ) :  ?>
          <div class="copyright">
            <?php echo $copyright_text; ?>
          </div><!-- .copyright -->
        <?php endif; ?>
        <?php if ( ! empty( $powered_by_text ) ) :  ?>
        <div class="site-info">
    		<?php echo $powered_by_text; ?>
        </div><!-- .site-info -->
        <?php endif; ?>
        <?php
    	}
    

    Hope this will help you to resolve your issue.
    Let us know how it goes.

    Best Regards!!!

    #17649
    Valerie
    Participant

    Thank you for you answer.
    Link of Footer Options opens in new tab but doesn’t work for link in Header Options.

    Please help.

    #17685
    wensolutions
    Keymaster

    Hello @ITHQ

    Can you please post your site URL so that we can debug your issue in more details and provide you with some possible solution.

    Hope you understand.

    Regards!!!!

    #17711
    Valerie
    Participant

    Hello,

    I found what I search in topic: http://themepalace.com/topic/quick-links-text-notice-url/

    Thanks a lot

    #17754
    wensolutions
    Keymaster

    Glad to know your issue is resolved.

    Feel free to post your queries if you have any more issues in the future.

    Cheers !!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.