Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #23068

    When viewing a post within a category, the link in the header links to the blog rather than the category. (the left link) Because of this, the selected category is not underlined in the main header. I’d like to change this so when you go http://jeutie.info/weightloss/how-it-all-started/ here, the left would say Weight loss, and in the header it would be underlined. (like it is here: http://jeutie.info/weightloss/) Is this possible? I’m guessing it has something to do with the code found in the single.php file.

    if(avia_get_option(‘frontpage’) && $new = avia_get_option(‘blogpage’))
    {
    $title = get_the_title($new); //if the blog is attached to a page use this title
    $t_link = get_permalink($new);
    $t_sub = avia_post_meta($new, ‘subtitle’);
    }[/CODE]

    [B]ALSO[/B] I think my featured image is having a problem. It is not a nice square. Take a look here: http://jeutie.info/weightloss/how-it-all-started/ To add to that the text of the actual blog looks kind of blurry.

    [CODE]if(avia_get_option(‘frontpage’) && $new = avia_get_option(‘blogpage’))

    {

    $title = get_the_title($new); //if the blog is attached to a page use this title

    $t_link = get_permalink($new);

    $t_sub = avia_post_meta($new, ‘subtitle’);

    }[/CODE]

    ALSO I think my featured image is having a problem. It is not a nice square. Take a look here: http://jeutie.info/weightloss/how-it-all-started/ To add to that the text of the actual blog looks kind of blurry.

    #118426

    Hi,

    Add this to your custom.css to fix the nice square issue

    #top.single .fullsize .template-blog .blog-meta {
    width: 100%;
    }

    About the blurriness… I am not too good with that. My world is blurry, had laser eye surgery but forgot to take off my contacts. AHem. You can try this code and see if it does anything

    #top .avia_textblock{
    webkit-perspective: none;
    -webkit-backface-visibility: hidden;
    -webkit-text-stroke: 0.24px
    }

    I am still looking at the other one. Please reply in 7 hours or so if you hear nothing.

    Thanks,

    Nick

    #118428

    Dear Nick,

    Thanks a lot for the quick support! That first piece of code did indeed fix the square issue. The code about the blurry text did not work. You can easily see it by viewing the text from the excerpt here (http://jeutie.info/weightloss/) and then view the actual post here (http://jeutie.info/weightloss/how-it-all-started/). The text from the excerpt looks much better (I’m using a Retina Macbook Pro).

    About the name of the page, it now gets the title of the blog page. I figured out how to remove the title without touching the breadcrumbs, but that does not look as good. I’d like it to pull the name of the category of the post instead. It should be similiar to the breadcrumbs as it displays correctly there (You are here:Home/Blog/Weight Loss/How it all started).

    #118429

    I figured out the blurry text. I edited the blog post manually and removed all [av_textblock] shortcodes. It fixed the issue. I made another blogpost though and the image is not aligned in the center (http://jeutie.info/tech-blog/redesign-complete/) The shortcode does imply it should be centered. Perhaps it is related to the arrow to go to the previous blog post. I do notice that my Blog Single Author Small layout looks different than the one in the theme demo. :-S

    #118430

    Hi,

    I am not sure what version of the theme is used in the demo. Since its release, Kriesi has made more improvements and upgrades in 3 weeks than most themes get in 2 years. He is back tomorrow so there will be probably another upgrade sometime around the corner.

    I measured your image, and it is centered perfectly on my windows 7 chrome. Sorry I don’t have retina , so perhaps its only on the mac. http://i.imgur.com/2GikNCp.png

    Thanks,

    Nick

    #118431

    Dear Nick, my apologies, yes, the first image, the featured one, is correctly centered, but I’ve added another one below (above the icon list) and that is off center for me. I’m guessing the layout builder does not like me switching back and forth to mess about with shortcodes and such.

    #118432

    Hey!

    Insert following code into the quick css field:

    a.avia_image.avia-align-center{
    display: block !important;
    }

    a.avia_image.avia-align-center img.avia_image {
    margin: auto;
    }

    Best regards,

    Peter

    #118433

    Dear Peter,

    That did indeed fix the alignment. Thank you very much! The only thing that remains is the title of the blog (right) when viewing a single blog post. If you would have any idea about that, I’d much appreciate it. Thanks once again!

    #118434

    Hi,

    Please open up functions_enfold.php and locate lines 256 that looks like

    if(!empty($link)) $title = "<a href='".$link."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".esc_attr( $title )."'>".$title."</a>";

    and replace them all with the lines below

    if (!empty($link)) {
    if (is_single()) {
    $tmp_category = get_the_category();
    // var_dump($tmp_category[0]);
    if ($tmp_category[0]) $title = "
    <a href='" . get_category_link($tmp_category[0]->term_id) . "' rel='bookmark' title='" . __('Permanent Link:', 'avia_framework') . " " . $tmp_category[0]->cat_name . "'>
    " . $tmp_category[0]->cat_name . "
    </a>
    ";
    }
    else {
    $title = "<a href='" . $link . "' rel='bookmark' title='" . __('Permanent Link:', 'avia_framework') . " " . esc_attr($title) . "'>
    " . $title . "
    </a>
    ";
    }
    }

    Thnks,

    Nick

    #118435

    Dear Nick, that works perfectly! Thank you very much!! You may close this thread if you wish.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Change title for single posts + issues with single posts’ is closed to new replies.