Slamer51
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )Thanks again.
I had free version Apostrophe which had strangely more widgets.
When i switched to this version, some widgets disappeared !
But there might be a way to incorporate two more widgets via the code ? can we ?
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )ALso,
DO you know how to add widgets ? for example : upcoming events, Adress & info.
The last free wordpress version i used had these guys.It seems like Apostrophe has only some widgets.
Thanks
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )Thanks again.
Your code is working fine.
Let me explain : I set nothing for Site title, tagline and Logo.
Also, the Display header Text is unchecked.I did only add the header image and tried to link it via Header.php.
Quick question : the setting Site title and tagline and logo still the same ? or DO i need to write back the previous code to use them ?
Thanks
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )Thanks Stephen.
Here is the link : https://blog.pbicadcam.com/wordpress/… As i said i need to link the header image to another website.
https://blog.pbicadcam.com/wordpress/
As for the code :
—————————————–
<?php /** * @package Apostrophe * * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <?php if ( function_exists( 'jetpack_the_site_logo' ) ) : jetpack_the_site_logo(); endif; ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </div> <nav id="site-navigation" class="main-navigation" role="navigation"> <a class="menu-toggle"><?php esc_html_e( 'Menu', 'apostrophe' ); ?></a> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'apostrophe' ); ?></a> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'apostrophe-navigation', ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'apostrophe-social', 'link_before' => '<span>', 'link_after' => '</span>', 'fallback_cb' => '', 'depth' => 1, ) ); ?> </nav><!-- #site-navigation --> </header><!-- #masthead --> <div id="content" class="site-content">
—————–
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )I think it’s a limitation i guess unless I missing something in
version 4.3.1 ?Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )Thanks
Well. IT’s still not working !!
Maybe it’s related to the theme : apostrophe
Forum: Fixing WordPress
In reply to: link the header to another website (? php echo )`Thanks for your answer.
Here it’s the code : part of it gets deleted automatically …This is strange.
<h1 class=”site-title”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></h1>
Replacing this <?php echo esc_url( home_url( ‘/’ ) ); ?> with https://www.mysite.com is not working.
do not know how to ? I think this is version 4.3.1 a bit different from the usual code we have in Header.php.
What you think ?
Thanks.