Forum Replies Created
-
AuthorPosts
-
Ah thanx!
So should i add this to the functions.php or the functions-enfold.php ?
Also is there a way for a novice like to check if the tags is added and “working” ?
Thanx!
So from what i’v read the og meta should be added to the functions.php
I tried this from this guide
//Adding the Open Graph in the Language Attributes 02 function add_opengraph_doctype( $output ) { 03 return $output . ' xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"'; 04 } 05 add_filter('language_attributes', 'add_opengraph_doctype'); 06 07 //Lets add Open Graph Meta Info 08 09 function insert_fb_in_head() { 10 global $post; 11 if ( !is_singular()) //if it is not a post or a page 12 return; 13 echo '<meta property="fb:admins" content="148882508634598"/>'; 14 echo '<meta property="og:title" content="Golfbaren | Minigolf och maximys"/>'; 15 echo '<meta property="og:type" content="website"/>'; 16 echo '<meta property="og:url" content=http://www.golfbaren.se/>'; 17 echo '<meta property="og:site_name" content="Golfbaren.se"/>'; echo '<meta property="og:description" content="Kom och spela minigolf på konstgräs av bästa kvalitet, en putt från T-banan och alldeles intill Kristinebergs Slottspark." />'; 18 if(!has_post_thumbnail( $post->ID )) { //the post does not have featured image, use a default image 19 $default_image="http://example.com/image.jpg"; //replace this with a default image on your server or an image in your media library 20 echo '<meta property="og:image" content="http://www.golfbaren.se/wp-content/themes/golfbaren/golfbaren/img/fb_logo.jpg"/>'; 21 } 22 else{ 23 $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); 24 echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>'; 25 } 26 echo " 27 "; 28 } 29 add_action( 'wp_head', 'insert_fb_in_head', 5 );
But then i can’t access the site due to a function.php error on the line where i pasted this.
Any idea what i’m doing wrong ?
April 14, 2015 at 9:31 pm in reply to: Two social icons beside each other on a mobile page ? #428484Hi Elliot!
The splash page can be seen here
http://paullindqvist.se/gb/mobile/
What i want is two icon that links to a Facebookpage and a instagram page.
The social share feature is only for sharing right ?
Regards
Paul L.Ok, great thanx!
Hi Thanx!
I have stumbled up on some limitations with this solution.
I need a splash page for mobile devices so when you enter the site on mobile device you should have to the choice to either proceed to the website or go to a app for golf.
The limitation i get is that i can’t set it up so that i always get the choice to go to either website or the app, due to cookies remembering the choice.
If i set the plugin to not remember the choice, i get a permanent redirect and thus i can’t get to the website as it simply redirect me to the same page over and over.
Is there a way to set up different start pages for mobile and desktop within enfold ? Or any other solution ?
Thanx!
You mean create a single page like golfbaren.se/mobile and then use the plugin to redirect to that adress ?
Thanx!
Ah that makes sense, no use in change that then!
Thanx!
Thanx! I used the video module and it works well for when i only have a single video.
It’s where i want to mix stills and video in a slideshow mobil playback isn’t supported ?
Thanx! Will try that!
Thanx! With the quick CSS it work, i assume this is a work around, and it will be fixed in the future ?
Thank again!
This reply has been marked as private.Great, thank!
Excellent thanx! Is there a way to have the arrows solid constantly and not just on mouse over ?
Thanx!
Hi Rikard!
I often use a easy slider to easily get the size i want of the video content, but maybe i’m going about this all wrong ?
See example here
When i implement videos with the use of easy slider it doesn’t work on mobile units and requires a fall back image. (i was wondering instead of using a single fallback image it would be practical to have a slideshow of images instead)
But as i said maybe I’m doing this all wrong, i often want to incorporate videos hosted on Vimeo, but i want to control the size of the video.
Which is the best way to embed vimeo files ?
Thanx
Thanx!
Only in safari browser, it wasn’t a issue before the update though ?
Excellent! Thanx!
Hi Elliot!
Thanx!!
Regards
Paul L.Thanx Begrafiks! Worked!
Excellent thanx for that!
Thanx!
Cool thanx!
Thanx!!
Maybe talked to soon.. ?
I can’t get it to work properly on this site.
If i take the browser window and resize it the menu still overlaps the logo before goin to the mobile menu. I changed the padding right value to the double with no effect. On ipad the menu is overlapping as it fails to go to mobile.
Had to clear my browser cache i think, seems to work now!
Thanx!Thanx! I did that but it still seems to overlap before it goes to mobile menu ?
Excellent! Worked great!
Thanx!
Is there anyway to have it fill the entire header ? As it looks now it’s still a border around the bottom and the sides.
Is there any official word that it’s safe to upgrade to WP 4.1 ?
Thanx!
-
AuthorPosts