Sturek
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show ad on first post on first pageBig thanks for your reply! Could you show me where in my code I should inser that code?
Forum: Fixing WordPress
In reply to: Adsense: After 1st paragraph, middle and end (functions.php)Hi! I’m interested in using the following code to show the ad on the first post on the startpage of my wordpress site.
My site shows the three first blog posts on the startpage, and this code only seems to show if you click in on one of the blog posts.
Forum: Plugins
In reply to: [The Events Calendar] Creating custom URL for an event in the calendarI have put exactly this code in the bottom of the functions.php and it works. My site also went down, but that was because i had put <? php before the code below. Code should look exactly as below:
function tribe_set_link_website ( $link, $postId ) { $website_url = tribe_get_event_website_url( $postId ); // Only swaps link if set if ( !empty( $website_url ) ) { $link = $website_url; } return $link; } add_filter( 'tribe_get_event_link', 'tribe_set_link_website', 100, 2 );Forum: Plugins
In reply to: [The Events Calendar] Creating custom URL for an event in the calendarWow, thanks! It works =)
Thanks!!
Forum: Plugins
In reply to: [The Events Calendar] Creating custom URL for an event in the calendarThanks for the reply!
I would like the link to the event to be replaced with the link assigned to the website field for the event. All my events will have different links to the event sites. For achieving this I should only use this snippet.. right?
function tribe_set_link_website ( $link, $postId ) { $website_url = tribe_get_event_website_url( $postId ); // Only swaps link if set if ( !empty( $website_url ) ) { $link = $website_url; } return $link; } add_filter( 'tribe_get_event_link', 'tribe_set_link_website', 100, 2 );Sorry, but I still don’t understand where I should insert the code for doing this? Which .php-document should I open and insert the code?
Forum: Plugins
In reply to: [The Events Calendar] Creating custom URL for an event in the calendarThe code was found on this page: https://gist.github.com/elimn/5bac70de00ec92804dc7