• Resolved jagna anderson

    (@jagna-anderson)


    Hello,
    I’m using the Link theme and I like it a lot. Today after the recommended update to version 1.1. the site I’ve created in the version 1.0. doesn’t work properly any more. There are problems with setting the header image (no response). The headers of the pages are showing … the titles of the featured images instead of the page titles.
    Does anybody have the same problems with 1.1. version and is there a way to restore the 1.0. version? Or how to repair the errors of 1.1.?
    Thank you,
    Jagna

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Hi, jagna. I’m sorry about that. I completely rewrote the content-header.php file in the parent theme and removed the one from the Link theme. My intent was to have it work the same way with respect to featured images, meaning it pulls the text from the image first and then from the page title. However, you are correct that it doesn’t do this properly.

    You can downgrade to v1.0 of the Link theme here Link Theme “Developer” tab

    I’ll fix this in the parent theme (Flat Bootstrap) and upload a new version.

    Thanks for pointing this out!

    Theme Author Tim Nicholson

    (@timnicholson)

    The parent theme is now fixed and I’ve uploaded it to www.remarpro.com. It usually takes a little while for someone there to review it and push it live, though.

    Also, if you don’t want to go back to Link v1.0, here is the fix I made to the Flat Bootstrap content-header.php file.

    Find the code that looks like this:

    // Otherwise if we have a featured image, try to get text from the image
    	} elseif ( $image_type == 'featured' ) {
    		$attachment_post = get_post( get_post_thumbnail_id() );
    		if ( $attachment_post AND ( $attachment_post->post_excerpt OR $attachment_post->post_content ) ) {
    			$title = $attachment_post->post_title;
    			$subtitle = $attachment_post->post_excerpt;
    			$description = $attachment_post->post_content;
    		}

    And replace it with this:

    // Otherwise if we have a featured image, try to get text from the image
    	} elseif ( $image_type == 'featured' ) {
    		$attachment_post = get_post( get_post_thumbnail_id() );
    		if ( $attachment_post AND ( $attachment_post->post_excerpt OR $attachment_post->post_content ) ) {
    			$title = $attachment_post->post_title;
    			$subtitle = $attachment_post->post_excerpt;
    			$description = $attachment_post->post_content;
    		} else {
    			$title = get_the_title();
    			$subtitle = get_post_meta( get_the_ID(), '_subtitle', $single = true );
    		}

    Thread Starter jagna anderson

    (@jagna-anderson)

    Hello Tim,

    thank you for your response! I didn’t fix it yet because I can’t find the exact piece of code you’ve inserted above. I still have Flat Bootstrap 1.3.1 installed. Do I have to download 1.4.3?

    Thanks a lot, Jagna

    Theme Author Tim Nicholson

    (@timnicholson)

    Yes, that code is in Flat Bootstrap v1.4.x.

    Thread Starter jagna anderson

    (@jagna-anderson)

    Super, now it works!
    But at the same time the header of my static front page has changed to “home”. I’ve renamed the “home” page and changed the menu title to “home” again, which works, but it isn’t for sure the elegant way. If you have one day a code for a content header of the front page, which is the title of the site and not the home-menu item, please share.

    Many thanks,
    Jagna

    Theme Author Tim Nicholson

    (@timnicholson)

    Is this working now for you? The static home page shouldn’t be displaying “home” on it. I’ve got v1.5 ready to upload and I know that one works, but it should already be fixed in the current v1.4.4.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘After the update to 1.1. the site doesn't work properly’ is closed to new replies.