Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #321791

    Hi,

    I want to show a small teaser text on my blog page. If the user wants to read the rest of the post he should use the “read more” link. So I tried to post to my blog like this:

    Teaser
    —more—
    Video + rest of text

    But in the overview the teaser text and the rest of my post is shown (except the video) and the more tag is somewhat ignored. I wonder why the video is not shown though. It works when I use the excerpt function from wp, but I don’t want to copy my teaser to excerpt and the post itself (if I need to change something, I have to edit the same text twice). Is there any solution?

    When I click the “read more” link there is another problem: The blog menu item in my header menu is no longer marked as active and the banner setup in my blog page disappears. Is there any page where I can configure the look of single blog posts?

    I can provide a temporary admin login anytime if needed.

    Thanks in advance!

    Regards

    #322160

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function change_blog_archive_style() {	
    	global $avia_config;
    	if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; }
    }
    add_action('get_header', 'change_blog_archive_style');

    Cheers!
    Josue

    #322393

    Hi Josue,

    thanks for the reply. I just added the code to my functions.php but it did not solve my problem :-(
    Any other ideas?

    Regards

    #322448

    Hi,

    Can you post a link to your blog page? also, try with this code instead:

    function change_blog_archive_style() {	
    	global $avia_config;
    	if(!is_single()){ $avia_config['blog_content'] = "content"; }
    }
    add_action('get_header', 'change_blog_archive_style');

    Regards,
    Josue

    #322465
    This reply has been marked as private.
    #322473

    Hi,

    Can you please create me an administrator account? post it here as a private reply.

    Regards,
    Josue

    #322475
    This reply has been marked as private.
    #322477

    Hi!

    Check your blog page now, i had to select this setting:
    http://screencast.com/t/rU1UsfaGpOxb

    Cheers!
    Josue

    #322479

    Well thanks but the problem is still existing. The blog page still shows the whole blog post and not only the content before the more tag. (And when you click the read more link, the blog page in the main header menu is not marked with the blue line at bottom anymore)…

    #322481

    I just realized you changed the english version while I was watching the german one. Anyway the english blog page now shows the whole blog post but I want it to stop at the more tag. The whole text should only be displayed when the user clicks the read more link.

    #322485

    Hey!

    Check it now, i had to remove the previous code i suggested from child functions.php too.

    Regards,
    Josue

    #322489

    Well it still shows the whole blog post on the blog page. Why does it show text after the more tag?

    #322491

    Hey!

    Blog page shows like this on my end – http://screencast.com/t/DWPtPxnxx

    Cheers!
    Josue

    #322499

    That’s right, but in between “… in action” and “Subscribe…” is the more tag. Is far as I understand it this should mean the rest of the post is only shown on the blog post details page (after clicking the read more link). But it still shows the whole post (excluding the video) on the blog page and ignores the more tag.

    #322511

    Well nevermind, its quite late here and I will go to bed now. For security reasons I will delete the admin account. If there is no solution its not that bad, would only be nice to have if it would work as expected.

    Thanks for your help anyway.

    #322514

    Hi,

    It’s weird because i’m trying the exact same set-up on my local install and it’s working. One thing i noted though is that if you set the Blog to a particular page via theme options (not using ALB) the excerpts will work as expected.

    Cheers!
    Josue

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.