Russell
Forum Replies Created
-
AuthorPosts
-
June 12, 2015 at 11:57 pm in reply to: Can you help me make the map bubble style be a consistent size? #42434
Hi Paolo any update on this task?
May 22, 2015 at 11:34 pm in reply to: Can you help me make the map bubble style be a consistent size? #40402This reply has been marked as private.May 22, 2015 at 8:06 pm in reply to: Can you help me make the map bubble style be a consistent size? #40383Also on that page is where i am having problems with marker clusters not working. If you are able to have a quick look that would be awesome mate.
May 22, 2015 at 7:30 pm in reply to: Can you help me make the map bubble style be a consistent size? #40382This reply has been marked as private.Perfect Paolo, that did the trick, I had not put in the individual itemprop elements.
Anyone used a voting plugin?
I am looking for the ability to have a competition directory of specific businesses with the ability for people to vote so that I can sort by number of votes. Kinda like a leaderboard.Perfect that works, thanks Paolo
I get
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/media/public_html/pmg2015/wp-content/themes/GDF_child/functions.php on line 24I tried using a different function name (and the code snippet you posted) and got the same error.
Ok I am not 100% sure but I had a go using the following add action to my functions.php but get a syntax error in the first line.
So here is the code snippet you mentioned on that post, would you be able to show me an example of how I would include the facebook sdk into it?
add_action( 'geodir_details_main_content', 'facebook_sdk',35); function facebook_sdk(){echo 'hello world!';}
Facebook Script
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=1378194292506778&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
Interestingly enough I exported the obsolete cpt table from phpmyadmin as csv and made some edits to the rows using find and replace in open office. I also exported the default cpt and copied the data from the obsolete table to the default table to ensure all rows matched. I then imported it into the default cpt table back in phpmyadmin as csv. Did the same with the posts table and it seems to have imported ok with no errors.
For anyone trying this then obviously do it on a backup copy of my database and site.
Thanks Simone, that resolved it.
This reply has been marked as private.November 30, 2014 at 12:32 am in reply to: Remove left margin on selected side bar element in details page #23064This reply has been marked as private.I think that there needs to be some way to add a little customisation to what is effectively a destination home page. The description box is the obvious place so why not change it so that it doesn’t strip out html code? I put a
<li>
with links in it and it worked fine yet obviously code for an image does not.
Being that the nature of this field is text only anyway then, like a text widget, it shouldn’t make any difference to current usage of text descriptions but would add functionality by parsing html.
Quick question, can the Facebook import be restricted to import events only and not business listings?
-
AuthorPosts