Tagged: blog title, post title, title
-
AuthorPosts
-
May 10, 2013 at 5:03 pm #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.
May 12, 2013 at 6:28 am #118426Hi,
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
May 12, 2013 at 6:55 am #118428Dear 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).
May 12, 2013 at 8:13 am #118429I 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
May 12, 2013 at 7:22 pm #118430Hi,
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
May 12, 2013 at 7:57 pm #118431Dear 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.
May 13, 2013 at 6:03 am #118432Hey!
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
May 13, 2013 at 4:50 pm #118433Dear 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!
May 13, 2013 at 11:29 pm #118434Hi,
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
May 14, 2013 at 3:40 am #118435Dear Nick, that works perfectly! Thank you very much!! You may close this thread if you wish.
-
AuthorPosts
- The topic ‘Change title for single posts + issues with single posts’ is closed to new replies.