14 years 7 months ago #64849
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Extra Space
Extra Space
Topic Author
14 years 5 months ago #64850
It seems that Google is using the 'by Author' now and it associates the authors Google account and profile picture with where it finds 'by Whoever'.
This makes it more important for me to figure this one out.
Articles that are submitted are not showing the profile and some have told me it's coz of the nbsp.
Does anyone have an idea? I don't know if this is a K2 thing or the template that I'm using really but it would be helpful to be pointed in the right direction.
Thanks!
This makes it more important for me to figure this one out.
Articles that are submitted are not showing the profile and some have told me it's coz of the nbsp.
Does anyone have an idea? I don't know if this is a K2 thing or the template that I'm using really but it would be helpful to be pointed in the right direction.
Thanks!
Topic Author
14 years 5 months ago #64851
Waited for a month to get some help but I figured it out myself.
Here is the answer if anyone needs it...
Edit the file item.php located in: components/com_k2/templates/default
Around line 71 you'll see:
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
I think the last was intended for the beginning of the line because as you can see in the picture I posted before there is no space between the time and author. So here is how I edited mine:
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
I put 5 nbsp before the php code. Now it looks good and probably Google will show the author profile also.
Won't report back if Google shows the author profile. No love from this site means I won't be wasting my time here either. I just wanted to finish what I started.
Lata.
Here is the answer if anyone needs it...
Edit the file item.php located in: components/com_k2/templates/default
Around line 71 you'll see:
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
I think the last was intended for the beginning of the line because as you can see in the picture I posted before there is no space between the time and author. So here is how I edited mine:
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
I put 5 nbsp before the php code. Now it looks good and probably Google will show the author profile also.
Won't report back if Google shows the author profile. No love from this site means I won't be wasting my time here either. I just wanted to finish what I started.
Lata.
Log in or create an account to reply.