Header Image is not fix it size
-
Hi Dear all
I have my website with header image not fix it size it comes big and small dependence of the size of the Site Name and Site Description
this is the code of header
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id=”content”>
*
* @package Newsup
*/
?>
<!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″>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> >
<?php wp_body_open(); ?>
<div id=”page” class=”site”>
<?php _e( ‘Skip to content’, ‘news-live’ ); ?>
<div class=”wrapper” id=”custom-background-css”>
<header class=”mg-headwidget”>
<!–==================== TOP BAR ====================–><?php do_action(‘newslive_action_header_section’); ?>
<div class=”clearfix”></div>
<?php $background_image = get_theme_support( ‘custom-header’, ‘default-image’ );
if ( has_header_image() ) {
$background_image = get_header_image();
} ?>
<div class=”mg-nav-widget-area-back” style=’background-image: url(“<?php echo esc_url( $background_image ); ?>” );’>
<?php $remove_header_image_overlay = get_theme_mod(‘remove_header_image_overlay’,false); ?>
<div class=”overlay”>
<div class=”inner” <?php if($remove_header_image_overlay == false) {
$newsup_header_overlay_color = get_theme_mod(‘newsup_header_overlay_color’,’rgba(32,47,91,0.4)’);?> style=”background-color:<?php echo esc_attr($newsup_header_overlay_color);?>;” <?php } ?>>
<div class=”container-fluid”>
<div class=”mg-nav-widget-area”>
<div class=”row align-items-center”>
<div class=”col-md-3 col-sm-4 text-center-xs”>
<div class=”navbar-header”>
<?php the_custom_logo();
if (display_header_text()) : ?>
<div class=”site-branding-text”>
<h1 class=”site-title”> ” rel=”home”><?php echo esc_html(get_bloginfo( ‘name’ )); ?></h1>
<p class=”site-description”><?php echo esc_html(get_bloginfo( ‘description’ )); ?></p>
</div>
<?php endif; ?>
</div>
</div>
<?php do_action(‘newsup_action_banner_advertisement’); ?></div>
</div>
</div>
</div>
</div>
</div>
<div class=”mg-menu-full”>
<nav class=”navbar navbar-expand-lg navbar-wp”>
<div class=”container-fluid flex-row”><!– Right nav –>
<div class=”m-header pl-3 ml-auto my-2 my-lg-0 position-relative align-items-center”>
<?php $home_url = home_url(); ?>
“><span class=”fa fa-home”></span><div class=”dropdown ml-auto show mg-search-box pr-3″>
<i class=”fa fa-search”></i>
<div class=”dropdown-menu searchinner” aria-labelledby=”dropdownMenuLink”>
<?php get_search_form(); ?>
</div>
</div></div>
<!– /Right nav –>
</div>
</nav> <!– /Navigation –>
</div>
</header>
<div class=”clearfix”></div>
<?php if (is_front_page() || is_home()) { ?>
<?php $show_popular_tags_title = newsup_get_option(‘show_popular_tags_title’);
$select_popular_tags_mode = newsup_get_option(‘select_popular_tags_mode’);
$number_of_popular_tags = newsup_get_option(‘number_of_popular_tags’);
newsup_list_popular_taxonomies($select_popular_tags_mode, $show_popular_tags_title, $number_of_popular_tags); ?>
<?php } ?>
<?php do_action(‘newsup_action_banner_exclusive_posts’);
do_action(‘newslive_action_front_page_main_section_1’); ?> -
Hello there,
Many thanks for reaching out.
Are you able to confirm the URL of the website that you need assistance with please?
Please note that if this is a self-hosted WordPress site, the support we could offer is limited and you may need to reach out to the theme developers.
-
Thanks for that. Your site is not hosted with WordPress.com but instead a site using the open-source WordPress software (from WordPress.org) but hosted elsewhere.
We cannot access files or data for sites that are hosted elsewhere, so WordPress.com staff can only assist with sites that are hosted on our servers. But, I can get you pointed in the right direction.
You would need to reach out to the theme developer for your theme for guidance in your theme modifications. You can find their support forum here:
https://wordpress.org/support/theme/newsup/
If you still have trouble, please reach out to the general WordPress community for guidance:
https://wordpress.org/support/forum/how-to-and-troubleshooting
I hope that helps!
- The topic ‘Header Image is not fix it size’ is closed to new replies.