Home › Forums › Pro Themes › Education Hub Pro › URL Notice link in new Tab
Tagged: link in new window
- This topic has 5 replies, 2 voices, and was last updated 8 years, 3 months ago by wensolutions.
-
AuthorPosts
-
September 13, 2016 at 2:53 pm #17604ValerieParticipant
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.September 14, 2016 at 2:18 am #17639wensolutionsKeymasterHello @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%2FAfter 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!!!
September 14, 2016 at 9:44 am #17649ValerieParticipantThank you for you answer.
Link of Footer Options opens in new tab but doesn’t work for link in Header Options.Please help.
September 14, 2016 at 11:22 pm #17685wensolutionsKeymasterHello @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!!!!
September 15, 2016 at 10:32 am #17711ValerieParticipantHello,
I found what I search in topic: http://themepalace.com/topic/quick-links-text-notice-url/
Thanks a lot
September 15, 2016 at 11:09 pm #17754wensolutionsKeymasterGlad to know your issue is resolved.
Feel free to post your queries if you have any more issues in the future.
Cheers !!
-
AuthorPosts
- You must be logged in to reply to this topic.