Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter gazbar

    (@gazbar)

    Sorry, one other problem just noticed.. Logo is not appearing on the News page as it is on the other pages, can you help?

    thanks
    Gaz

    Thread Starter gazbar

    (@gazbar)

    blimey that was quick! – thanks Siobhan, thats perfect! I must of tried about 20 combinations of things like that but for some reason just wasn’t quite getting it right!

    gaz

    Thread Starter gazbar

    (@gazbar)

    hi karl

    Not very elegant, but I hard-coded the social links etc into the ‘footer-featureimage.php’ & ‘footer-para.php’ templates and then bit of css to position and style.

    the background images were done with css:

    body.page-id-19 {
        background-image: url("/wp-content/uploads/zoilo-contact-bg.jpg");
        background-position: 50% 0px;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        height: 100%;
        width: 100%;
    }

    just find page id of the page and then add your background image, then just dupe the code and repeat for each page changing accordingly. that make sense?

    Gaz

    ah, perfect, thats fixed it, thanks. I’m not good with php!

    Thanks for the advice but it is on my test server, so its not visible to anyone unless they know the url. I’m working with the client before they put it live on their server

    sorry me again, I’ve taken the header-para.php template out the child theme for now.

    hi, here’s the link:
    https://www.satellite-clients.co.uk/Zoilo-new

    here’s the template

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package harmonic
     */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <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">
    	<?php do_action( 'before' ); ?>
    
    	<header id="masthead" role="banner">
    		<div id="mobile-panel">
    			<div id="mobile-link">
    				<span id="menu-title"><?php _e( 'Menu', 'harmonic' ); ?></span>
    			</div><!-- #mobile-link -->
    			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    		</div><!-- #mobile-panel -->
    
    		<div id="mobile-block">
    			<nav id="site-navigation" class="main-navigation" role="navigation">
    				<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'harmonic' ); ?></a>
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			</nav><!-- #site-navigation .main-navigation -->
    		</div><!-- #mobile-block -->
    
    		<div id="site-branding">
    			<?php if ( function_exists( 'jetpack_the_site_logo' ) ) {
      harmonic_the_site_logo(); ?>
    <?php } else { ?>
      <h1 class="header-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    <?php }
    } ?>
    			<?php
    			if ( has_nav_menu( 'social' ) ) : ?>
    				<div id="social-links-wrapper">
    					<?php wp_nav_menu( array(
    						'theme_location'  => 'social',
    						'container_class' => 'social-links',
    						'menu_class'      => 'clear',
    						'link_before'     => '<span class="screen-reader-text">',
    						'link_after'      => '</span>',
    					) ); ?>
    				</div>
    			<?php endif; ?>
    		</div><!-- #site-branding -->
    
    		<nav id="site-navigation" class="desktop-nav main-navigation site-wrapper" role="navigation">
    			<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'harmonic' ); ?></a>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    		</nav><!-- #site-navigation .desktop-nav .main-navigation .site-wrapper -->
    
    	</header><!-- #masthead -->

    this is what I get when i upload it:

    Parse error: syntax error, unexpected '}' in /homepages/0/d74214316/htdocs/websites/clients/Zoilo-new/wp-content/themes/harmonic-child/header-para.php on line 46

    Hi

    i also want to be able to do this and have tried but get syntax error

    I’m using a child theme, have installed jetpack, added the site logo, then added the code above to my header-para.php replacing the original :

    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

    Can you advise what I’m doing wrong?

    thanks
    Gary

    Thread Starter gazbar

    (@gazbar)

    certainly strange.. no I’m not using W3TC caching plugin.

    I’ll go through the whole removing plugins routine, see if something else is causing a conflict. I’ll let u know if I have any joy..

    thanks
    Gary

    Thread Starter gazbar

    (@gazbar)

    hi Martin and thanks for coming back to me

    Yes that’s what I thought about the div not clasing, but it all seems fine in the code and was working before the update. Its not in a widget, I have it coded straight into the template:

    <div class=”tweetsect”>
    <h3>TWEET, TWEET</h3>
    <?php echo do_shortcode( “[rotatingtweets screen_name=’caseyavenue’ official_format=’1′ links_in_new_window=’1′ rotation_type=’scrollUp’ speed=’3000′ timeout=’6000′ url_length=’12’]” ) ?>
    </div>

    weird eh?

    If you have any thoughts please let me know
    Gary

    Thread Starter gazbar

    (@gazbar)

    sorry just a quick follow up, when it first loads it might look ok, then going to another page or refreshing seems to break it:

    screengrab

    thanks

Viewing 10 replies - 1 through 10 (of 10 total)