Title bar image in Modern theme archive

Home Forums Legacy Support Support queries Update Issues Title bar image in Modern theme archive

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27714
    isigma
    Spectator
    Is it only my set up problem, or nobody reports about this issue: each update of the Modern theme I have to edit the archive.php and author.php and substitute the title image to <div class="title-content" style="background:url(<?php echo (empty($url)?get_stylesheet_directory_uri().'/assets/images/default.jpeg':$url); ?>)"> otherwise the titlebar image is the avatar of the first post on the archive page? In the last 2.0.6. the correction is <section id="title" class="title-area"  style="background:url(<?php echo (empty($url)?get_stylesheet_directory_uri().'/assets/images/default.jpeg':$url); ?>) !important">, as now the style is in #title.
    #27914
    Anshuman Sahu
    Keymaster
    Yes this is an issue . Quick fix is : Goto wp-content/themes/wplms_modern/includes/init.php . find the function " title_background " and change the line : if(has_post_thumbnail()){ with this : if(!is_archive() && has_post_thumbnail()){ refer :http://prntscr.com/a29mw0
    #28031
    isigma
    Spectator
    thank you
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Title bar image in Modern theme archive’ is closed to new replies.