Suzi Berman
Forum Replies Created
-
AuthorPosts
-
Hello – In looking at past topics, I found that I had installed Code Snippets Plugin and used this code to get it to display the URL instead of the word Website:
add_filter( ‘geodir_custom_field_website_name’, ‘geodir_change_website_field_display_name’, 10, 3 );
function geodir_change_website_field_display_name($name,$website,$post_id){
if($name==’Facebook’ || $name==’Twitter’ || $name==’Instagram’ || $name==’Website’){return $website ; }
else{return $name;}
}Can you provide updated code to display BOTH the label “Website:” and the URL?
This reply has been marked as private.October 18, 2019 at 2:48 pm in reply to: Function to display the place website URL instead of the word “website” #513728Hello: I stand corrected. I used the 2nd snippet
add_filter( ‘geodir_custom_field_website_name’, ‘geodir_change_website_field_display_name’, 10, 3 );
function geodir_change_website_field_display_name($name,$website,$post_id){
if($name==’Facebook’ || $name==’Twitter’ || $name==’Instagram’ || $name==’Website’){return $website ; }
else{return $name;}
}And it worked!!! Thank you!
October 18, 2019 at 2:37 pm in reply to: Function to display the place website URL instead of the word “website” #513724Hello: I installed the plugin and added the snippet, selecting “Run snippet everywhere”. It did not change the website to the URL instead of displaying the word “website”. Can you advise on another solution? Can I change the snippet directly in the code instead of using the plugin? What file? Where in the code?
September 18, 2019 at 8:42 pm in reply to: Layout/formatting questions for Search/Listings pages #509033This reply has been marked as private.September 18, 2019 at 8:40 pm in reply to: Layout/formatting questions for Search/Listings pages #509031This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.I figured out the https://stridecare.com/find-podiatrist page. It is acting like a blog and we had blog set as masonry layout with 2 columns and right sidebar. After I removed those settings, got the full with page back. Yay!
I want to get rid of “Something missing? Why not add a listing?.” And the option to add a listing in the widget/sidebar (but keep that they can view their listings). Do not want any podiatrist to add their listings. Only want admin to do that.
Also want to get rid of the “View Grid” box with dropdown, because it doesn’t seem to do anything and I want the listings displayed in 3 columns anyway (and they are not cooperating).The location page listed there is here and seems ok: https://stridecare.com/find-location/ – YES this is the only page that is truly working for me
Try resaving as described here: https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/#404 – YES it worked!
The GD Archive is the one with the odd layout, here: https://stridecare.com/wp-admin/post.php?post=1755&action=edit&classic-editor – THANKS. I restored default content but it’s not what I want. I want it to display all the podiatrist listings and then a user can search at the top to find a particular podiatrist. I added the shortcode [gd_listings post_type=”gd_place” sort_by=”az” title_tag=”h3″ layout=”3″ add_location_filter=”1″ view_all_link=”1″ bottom_pagination=”1″ category=”0″] to the bottom, but it is not displaying 3 columns as instructed. Also I want to get rid of “Something missing? Why not add a listing?.” And the option to add a listing in the widget/sidebar (but keep that they can view their listings). Do not want any podiatrist to add their listings. Only want admin to do that.
Also want to get rid of the “View Grid” box with dropdown, because it doesn’t seem to do anything and I want the listings displayed in 3 columns anyway (and they are not cooperating).You could try
@media (min-width: 768px) {
.ast-col-md-6 {
width: 100%!important;
}
}
YES I did this and it made the content go across the 2/3rds of the page. Better than 1/3rd. Still not full width. I do not get why the locations page works and this page doesn’t when I have matched the page settings exactly.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private. -
AuthorPosts