Omar

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Nofollow on events, organizers and venues #1142324
    Omar
    Participant

    Hey Nico,

    Thanks for your response. As I will be on vacation till Monday I can give you a feedback to the solution on Monday.
    Much thanks for your effort.

    Best regards

    in reply to: Nofollow on events, organizers and venues #1141469
    Omar
    Participant

    Hey!

    Goal of this customization would be to only index the main page of all events / organizers / venues, as a specific event will expire and customers on google can still search for it and will find it already taken place. The same is for venues and organizers.

    The meta tag should be a good plan in the html, so there are two options as I see:

    – nofollow on link outgoing from the list of all events / organizers …
    – noindex on specific page

    As for implementation I would think, that adding the noindex on specific events is way more simple.

    Best regards

    in reply to: Nofollow on events, organizers and venues #1140944
    Omar
    Participant

    Hey,

    Thanks for your quick reponse.

    Yes the snippet is working for the filters you’ve mentioned, unfortunately it’s not the filters which I need to work.

    I just need the links to the single organizer, single event and a specific venue to be nofollow.

    If you could afford me with a hacky solution that would be awesome.

    Regarding the robots I don’t know if it would work, as I’m not so experienced in writing robots.txt .

    Thanks and best regards!

    in reply to: Nofollow on events, organizers and venues #1140176
    Omar
    Participant

    Hey Nico,

    Thanks for your quick response.

    Sure, i’ve tried the solution presented in this thread:

    adding Nofollow to event links

    add_filter( 'tribe_get_event_website_link', 'add_no_follow_event_website', 10, 2);
    
    function add_no_follow_event_website( $html ) {
    	//Strip out HTML
    	$url = strip_tags( $html );
    
    	//Add nofollow attribute
    	return sprintf( '<a href="%1$s" rel="nofollow" target="_self">%1$s</a>', $url );
    }
    

    I’ve tried to add a filter to :
    ‘tribe_get_venue_website_link’
    ‘tribe_get_day_link’
    ‘tribe_get_organizer_link’

    but unfortunately it didn’t work out.

    Basically the following structure or the following links should be made nofollow:

    /venue/specific_venue
    /organizer/specific_organizer
    /events/2016-xx-xx
    /event/specific_name_of_event

    Best regards

    • This reply was modified 9 years, 9 months ago by Omar.
    • This reply was modified 9 years, 9 months ago by Omar.
Viewing 4 posts - 1 through 4 (of 4 total)