• parayanic

    (@parayanic)


    Hi everyone,
    Recently i am designing the new website in Persian enigma them (ptbi.ir).
    I want to do some modification on this theme:

    1- Placing the logo on the right side of header just beside the site title. (At the moment, if i place the logo, the site title will be removed. I can select on of these two options: the site title or logo. I want to place both of logo and site title in header section)
    2- rearrange the contact info in 3 separate rows in left side of the header:
    a: Email:
    b: Mobile:
    c: Phone:
    3- Change the font of menu to BOLD
    4- Increase the number of site banner from 3 to 4.
    5- remove the Zoom button from the portfolio and keep just the link button.

    Please help me with necessary CSS code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • weblizar_support

    (@weblizar_support)

    Hello,

    Firstly create a child theme using plugin – https://ww.wp.xz.cn/plugins/orbisius-child-theme-creator/

    Now Copy the header.php and home-portfolio.php files in child theme directory.

    For your first issue –
    Open header.php and see line no. 30

    <?php if (has_custom_logo()) { the_custom_logo(); } else { ?> <h1><?php echo get_bloginfo('name'); } ?></h1>

    replace it with below code and save the file.

    <?php if (has_custom_logo()) { ?> <h2> <?php the_custom_logo(); echo get_bloginfo('name');?> </h2> <?php } else { ?> <h1><?php echo get_bloginfo('name'); } ?></h1>

    For your second and third issue –
    Go to dashboard -> Appearance -> Customize -> Theme Options -> Theme General Options -> paste the below code in Custom CSS box and save –

    .head-contact-info li {
        display: block;
    }
    .head-contact-info li {
        display: block;
        float: none;
    }
    .navbar-default .navbar-nav > li > a {
        font-weight: bold;
    }

    For your fourth issue –
    This is limit in free theme for more information contant to weblizar – https://weblizar.com/contact/

    For your 5th issue –
    open home-portfolio.php and remove line no. 29 and save the file.

    <a class="photobox_a" href="<?php echo esc_url($wl_theme_options['port_'.$i.'_img']); ?>"><i class="fa fa-search-plus"></i><img src="<?php echo esc_url($wl_theme_options['port_'.$i.'_img']); ?>" alt="<?php echo esc_attr($wl_theme_options['port_'.$i.'_title']); ?>" style="display:none !important;visibility:hidden"></a>

    Thanks.

    Thread Starter parayanic

    (@parayanic)

    Hi,
    Thank you for your guidance.
    The number 2 and 5 was done successfully.
    1- But the menu font doesn’t change and it is same as previous.
    2- The header.php content is a bit different. How i should change this:

    <?php if($wl_theme_options[‘upload_image_logo’]){ ?>
    ” style=”height:<?php if($wl_theme_options[‘height’]!=”) { echo $wl_theme_options[‘height’]; } else { “80”; } ?>px; width:<?php if($wl_theme_options[‘width’]!=”) { echo $wl_theme_options[‘width’]; } else { “200”; } ?>px;” />
    <?php } else {
    echo get_bloginfo(‘name’);
    } ?>

    Thanks,

    weblizar_support

    (@weblizar_support)

    Hello,

    Please update your theme then do all changes.

    Open header.php and see line no. 30 and line no. 39 –

    <?php if (has_custom_logo()) { the_custom_logo(); } else { ?> <h1><?php echo get_bloginfo('name'); } ?></h1>

    replace it with below code and save the file.

    <?php if (has_custom_logo()) { ?> <h2> <?php the_custom_logo(); echo get_bloginfo('name');?> </h2> <?php } else { ?> <h1><?php echo get_bloginfo('name'); } ?></h1>

    Thanks.

    Hi,

    I am the creator of orbisius-child-theme-creator plugin. Thanks @weblizar_support for menntioning it.

    Just want to add that when a child theme is created header, footer & style.css are copied to the child theme so home-portfolio.php needs to be copied and pasted in the 2x editors.

    weblizar_support

    (@weblizar_support)

    Hello Svetoslav Marinov,

    Thanks for sharing this knowledge.

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

The topic ‘customize header’ is closed to new replies.