Tagged: ,

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #484062

    Hi,

    I am trying to style the blog landing page and individual posts.
    I need to add a header text and breadcrumb nav to all blog pages.

    I have tried several options and the closest I can get is:
    Blog page
    set Use the advanced layout editor to build your own blog layout in Enfold Child settings
    Page uses columns and a widget area > sidebar blog
    Layout > default layout settings for the blog page

    Sidebar Settings
    right sidebar for Archive, Blog, Single Post Enries

    Post
    Use right sidebar / sidebar blog in Layout settings.

    I could style the different sidebars to match, but the posts should also include the header text.

    I am thinking I might need to edit the php template to achieve this. Could you give any pointers, or let me know if there is an easier way to do this through admin?

    Thanks

    #484073

    To be clear I have tried setting both page and post with sidebars in Layout, but the title and breadcrumb does not appear on blog page, even when set. I would also have to rewrite the title using CSS to get the display I want, which is not optimal for SEO!

    #484286

    Hi,

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #484402

    Thanks :)

    #484747

    Hi,

    The site login worked fine but not the WordPress one, could you check please?

    Thanks,
    Rikard

    #485155

    My mistake, it’s working now

    #485426

    As an update, I have had to switch off setting the blog page in Enfold settings to get excerpts with a read more link to work (on my local version that is).
    If I do this there is no class no the main element top hook onto. I need to set the width of main and aside here.
    Is it possible to add a page class?

    • This reply was modified 9 years, 3 months ago by edcubitt.
    #485740

    Hi,

    Thanks, login is working now.

    Are you using the ALB to create the posts where you are not getting the excerpts? If so, it’s the expected behaviour, you will have to add the excerpt manually to posts created with the ALB.

    There is a post- or page-id on every page if you inspect it in your browsers. You will find it in the body tag.

    Best regards,
    Rikard

    #485906

    Advanced Layout Builder? Yes, now on the main blog page you should be able to see that I am using the blog posts module.
    Ok, so I can target page ids, that is a solution :)
    How about controlling the header section on both blog landing page and blog posts?
    I would like it to be the same as the main blog page on a post

    • This reply was modified 9 years, 3 months ago by edcubitt.
    #486408

    Hey!

    with ALB you have all the freedom to style it how you want. Though I am not sure what you mean exactly. Do you want to style both pages in private content the same? what exactly should match?

    Regards,
    Andy

    #486520

    Ok, so it should look like the images attached.

    What I need:
    Same title area on both pages
    Add an infinite scroller at the bottom
    (blog search is optional)

    #486924

    Hey!

    1.) The blog post element doesn’t have a big preview or hero post so you have to try the magazine element then follow this link in order to add excerpt to the post items: https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list-2/#post-310861

    Use the Quick CSS field to switch the featured image position from left to right.

    2.) There is no infinite scroll option in the blog post element. You will have to hire a freelance developer to modify the blog script.

    Best regards,
    Ismael

    #487092

    Thanks, that is a separate issue, creating a larger first blog post at the top.
    I will look into that.
    What about the blog title area?
    I am a front end developer, but not so experienced with php :)

    #487118

    Ok I have tried the Magazine module.
    There is an option for a title with link, but again that does not also appear on the blog post page.
    Also, with magazine selected, all categories and 5 posts it shows only 1 post and no excerpt.

    #487717

    Could I get a response please?
    This is really quite confusing!

    On the link attached where is the header ‘News’ being generated from?
    I have set the title and breadcrumb option, but cant figure out where ‘News’ is coming from.
    I would like that to say ‘Blog’.
    Also, the flyout menu saying ‘Hello world’ on the left. Where is that set?
    I can easily hide in CSS but would like to know where it is being set!

    Thanks :)

    #488729

    Hey!

    “News” in header is standard WordPress behavior. Try to customize it with one of this plugin:
    http://de.wordpress.org/plugins/loco-translate/
    poedit.net/wordpress

    The flyout menu is not a menu, it is showing the next/previous post of your blog (Hello world is the blog title).

    Regards,
    Andy

    #488818

    Ok, I think what I maybe need to do here is add some php in header.php?

    The options within wp and enfold don’t seem to allow a custom header on all blog pages, and the title/breadcrumbs isnt doing it either! I dont see how a translation plugin would help here?

    Unfortunately I dont know php. Could you suggest a couple of lines of code that would achieve this?

    #489347
    #489402

    Thank you!

    I didnt want the post title, so I changed to:

    add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
    function fix_single_post_title($args,$id)
    {
    if ( $args[‘title’] == ‘News’ )
    {
    // $args[‘title’] = get_the_title($id);
    // $args[‘link’] = get_permalink($id);
    // $args[‘heading’] = ‘h1’;
    $args[‘title’] = ‘Blog’;
    $args[‘heading’] = ‘h1’;
    }

    return $args;
    }

    Now I also need to show the header on the category pages

    #489412
    #489648

    That’s a slightly different outcome.
    How do I add categories to the above code?

    #490928

    If someone could post a bit of code that will also show the title on category pages that would so awesome!

    Thanks :)

    • This reply was modified 9 years, 3 months ago by edcubitt.
    #492170

    I was able to fix this with:

    <?php if ( is_category( $category ) || is_page( ‘Blog’ ) ) { ?>
    <div class=”stretch_full container_wrap alternate_color light_bg_color title_container”>
    <div class=”container”>
    <h1 class=”main-title entry-title”>
    blog
    </h1>
    </div>
    </div>

    in header.php, and:

    // Blog header

    add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
    function fix_single_post_title($args,$id)
    {
    if ( $args[‘title’] == ‘News’ );
    {
    $args[‘title’] = ‘blog’;
    $args[‘heading’] = ‘h1’;
    }

    return $args;
    }

    in functions.php

    #492640

    Hi!

    Great! Glad you fixed it. ;)

    Regards,
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Customising Blog appearance, blog and post pages should be consistent’ is closed to new replies.