WordPress.org

Support

Support » Themes and Templates » [Resolved] Mantra theme design

[Resolved] Mantra theme design

  • shdaniyal
    Member

    @shdaniyal

    this is my website –> oasis.pk
    Im using Mantra theme..

    I want to move the Search bar a little upward so that it can align with the top Menu . how can I do that ? 🙁

    and under the PAGES section , I want the pages to be displayed like they are displyed in this website http://www.cbr.gov.pk/

    so that a vertical menu is formed on the left hand side.
    at the moment only links of the pages are being displayed..I want to display a proper Menu, that if we hover on it, its sub pages also display ….
    plzz help me on this project of mine 🙁

Viewing 15 replies - 16 through 30 (of 50 total)
  • shdaniyal
    Member

    @shdaniyal

    okay thanks…

    shdaniyal
    Member

    @shdaniyal

    I have added the modified header.php in the mantra-child but it doesnt read it ,and reads the header.php which is in the parent theme :/

    Andrew Nevins
    Forum moderator

    @anevins

    Can you provide a link to your webpage? We may be able to determine whether your Child Theme is being loaded.

    shdaniyal
    Member

    @shdaniyal

    oasis.pk

    Andrew Nevins
    Forum moderator

    @anevins

    Your Child Theme is not loading, have you activated it through the dashboard?

    shdaniyal
    Member

    @shdaniyal

    oh..how do we activate it through the dashboard ? :/

    Andrew Nevins
    Forum moderator

    @anevins

    It should be in Appearance → Themes

    shdaniyal
    Member

    @shdaniyal

    oh ..now I have activated it .but now my header image is gone 🙁

    Andrew Nevins
    Forum moderator

    @anevins

    You can grab a copy of the header.php file from your actual theme again, then paste it over your Child Theme header.php file (overwrite it).

    shdaniyal
    Member

    @shdaniyal

    I copied the entire code..but still the same problem …
    here’s the code from the parent theme that im pasting into the child theme

    <?php
    /**
     * The Header
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package Cryout Creations
     * @subpackage mantra
     * @since mantra 0.5
     */
     ?><!DOCTYPE html >
    <html <?php language_attributes(); ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <?php  	cryout_seo_hook(); ?>
    <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">
    
    <?php cryout_wrapper_hook(); ?>
    
    <header id="header">
    
    		<div id="masthead"> 
    
    			<div id="branding" role="banner" > 
    
    				<?php cryout_branding_hook();?>
    				<div style="clear:both;"></div>
    
    			</div><!-- #branding --> 
    
    			<nav id="access" role="navigation">
    
    				<?php cryout_access_hook();?>
    <?php $search_text = __( 'Search', 'mantra' ); ?>
    <form method="get" id="searchform"
    action="<?php echo home_url( '/' ); ?>/">
    <input type="text" value="<?php echo $search_text; ?>"
    name="s" id="s"
    onblur="if (this.value == '')
    {this.value = '<?php echo $search_text; ?>';}"
    onfocus="if (this.value == '<?php echo $search_text; ?>')
    {this.value = '';}" />
    <input type="submit" id="searchsubmit" value="OK" />
    </form>
    
    			</nav><!-- #access -->
    
    		</div><!-- #masthead -->
    
    	<div style="clear:both;"> </div>
    
    </header><!-- #header -->
    <div id="main">
    	<div  id="forbottom" >
    		<?php cryout_forbottom_hook(); ?>
    		<div style="clear:both;"> </div> 
    
    		<?php cryout_breadcrumbs_hook();?>

    [In future, please wrap your code in one backtick at the start and one backtick at the end]

    shdaniyal
    Member

    @shdaniyal

    I think its maybe because there’s an option in the theme that allows you to add the header and change its size :/ :S

    Andrew Nevins
    Forum moderator

    @anevins

    So, if you remove header.php from your Child Theme, the header image problem persists? If so, the issue is in your Child Theme stylesheet.

    shdaniyal
    Member

    @shdaniyal

    yes it does

    but I copied the entire CSS from the parent stylesheet

    Andrew Nevins
    Forum moderator

    @anevins

    You shouldn’t need to do that, but instead use the CSS import function as exampled here http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_Theme

    Otherwise you’ll be duplicating code and it’ll be harder to debug which CSS is causing the issue.

    Andrew Nevins
    Forum moderator

    @anevins

    I think the issue may be that you’ll need to copy the images folder (with images inside it) inside your Child Theme.

Viewing 15 replies - 16 through 30 (of 50 total)
  • The topic ‘[Resolved] Mantra theme design’ is closed to new replies.