Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter topscorer

    (@topscorer)

    I think the way forward for me would be if I could make a custom template like you suggest that calls the custom header when I want to use English.

    But I’m not sure if the primary menu is controlled in the header.php with the Nirvana theme?

    Like I say I cannot write code but I’ve looked at the code and I don’t see anything obvious or that looks like the old thread I linked to in my original post.

    Thread Starter topscorer

    (@topscorer)

    I haven’t found any plugins that I feel confident can work for me. I don’t want to translate the whole website, I want to have Spanish and English pages that I’ve created myself with professional translation/

    Are you using the Nirvana theme?

    Can you tell me what custom code you are using please so I can try? I’m pretty good at following instructions but I cannot write code!

    The Nirvana header currently looks like this:-

    <?php
    /**
     * The Header
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package Cryout Creations
     * @subpackage nirvana
     * @since nirvana 0.5
     */
     ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <?php  cryout_meta_hook(); ?>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
     	cryout_header_hook();
    	wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    
    <?php cryout_body_hook(); ?>
    
    <div id="wrapper" class="hfeed">
    <div id="topbar" ><div id="topbar-inner"> <?php cryout_topbar_hook(); ?> </div></div>
    <?php cryout_wrapper_hook(); ?>
    
    <div id="header-full">
    	<header id="header">
    		<div id="masthead">
    		<?php cryout_masthead_hook(); ?>
    			<div id="branding" role="banner" >
    				<?php cryout_branding_hook();?>
    				<?php cryout_header_widgets_hook(); ?>
    				<div style="clear:both;"></div>
    			</div><!-- #branding -->
    			<a><span> </span></a>
    			<nav id="access" role="navigation">
    				<?php cryout_access_hook();?>
    			</nav><!-- #access -->
    
    		</div><!-- #masthead -->
    	</header><!-- #header -->
    </div><!-- #header-full -->
    
    <div style="clear:both;height:0;"> </div>
    <?php cryout_breadcrumbs_hook();?>
    <div id="main">
    		<?php cryout_main_hook(); ?>
    	<div  id="forbottom" >
    		<?php cryout_forbottom_hook(); ?>
    
    		<div style="clear:both;"> </div>
    Thread Starter topscorer

    (@topscorer)

    Thanks for replying.

    If I understand correctly you’ve made the menu look different but have the same menu.

    I want my menu to look the same but be different.

    For example I want a menu called TopEnglish to be used on some pages as the primary and a menu called TopSpanish to be used on other pages as the primary.

    So my landing page will be in Spanish and will use the menu TopSpanish, it will have a menu button ‘English’ and if you click it you will go to the English version of the home page and it will use the menu TopEnglish. The TopEnglish menu will have a menu button ‘Espanol’ and clicking that will take you back to the Spanish landing page that uses the TopSpanish menu.

    My website is http://www.aguagente.com.

    Will what you have done allow me to do this?

    Thread Starter topscorer

    (@topscorer)

    OK, I’ve activated the child theme and it seems to work OK.

    Now can anyone help me to do what I originally intended as described in my first post please?

    I assume I need to do something to the functions.php?

    Thread Starter topscorer

    (@topscorer)

    When I preview Nirvana Child it seems to be OK but since the link http://codex.wordpress.org/Child_Themes indicates that the functions.php code given only works for themes that only have one style I’m worried it won’t work correctly.

    I used the code:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ) );
    }

    And Nirvana has stylesheets:

    editor-style-rtl.css
    editor-style.css
    style-frontpage.css &
    style-mobile.css

    Actually they are all in the Style folder and the root has a file called style.css so maybe what I’ve done is OK?

    Thread Starter topscorer

    (@topscorer)

    I have created a child folder and a style.css file but got completely confused about the functions.php.

    Firstly I notice that Nirvana has more than one style sheet and the link only shows code that can be used when the theme only has one stylesheet .css file.

    Can you help please?

    Thread Starter topscorer

    (@topscorer)

    OK, I’m working on that now. I’ve never done it before but hopefully I can get it done in half an hour or so.

    Thanks for your help.

    Thread Starter topscorer

    (@topscorer)

    OK, I will do. Thanks

    Thread Starter topscorer

    (@topscorer)

    My website is:- http://aguagente.com/

    Thread Starter topscorer

    (@topscorer)

    I want to use two different primary menus.

    One primary menu for pages that are in Spanish and one primary menu for pages that are in English.

    The landing page will be in Spanish and use the Spanish primary menu. I will add a link called ‘English’ to that menu. If you click that you will go to the English version of the home page which will use the English Primary Menu.

    In the English primary menu I will a link called ‘Espanol’ and clicking that would take you back to the Spanish landing page

    Thread Starter topscorer

    (@topscorer)

    That’s what I was thinking I might be able to do. Then I don’t need to modify the core code of the theme which would be lost after any update.

    The theme I am using also has space to enter custom Javascript

Viewing 11 replies - 16 through 26 (of 26 total)