Giri
Forum Replies Created
-
AuthorPosts
-
Hey Kuba, Refer this reply
https://wpgeodirectory.com/support/topic/changing-labels-on-add-listing-page/#post-218159
Hi there,
I have checked your source code.
<
and
>
tags are converted to html encoded chars.
$tags = '<iframe>';
I have corrected that one.
Now its working. Please test it.
Please note, you will see calendar tab on preview page. But you won’t see google cal on preview page. I found this error while testing in my local.
The XSS Auditor refused to execute a script in ‘http://localhost/whoop/listing-preview/’ because its source code was found within the request. The auditor was enabled as the server sent neither an ‘X-XSS-Protection’ nor ‘Content-Security-Policy’ header.
I’ll discuss with stiofan and try to fix that problem. Except that i believe everything would work fine.
Let me know if you still have any issue.
Thanks
Hey Craig, I have fixed few pagespeed issues.
Location Page & Home Page
Popular Categories (links) too close to each other.
More Categories too close to the mapCan you give me the location and home page url where you have that issues?
Thanks
No Craig, You were very clear.
I have found the cause. I need to discuss with paolo and stiofan, before changing some styles, because they might have added there for a reason.
For instance, this is the code causing that menu issue
.home.sd.admin-bar .site-header { top: 0; }
Before removing the code, i have to discuss with them
I know how to hide the admin bar, but thank you for the advice.
Ok I get it now. Supreme is already a child theme. Thats why you are worried that your changes will get lost when you upgrade.
In this case you can create a simple plugin to put your custom codes.
If you need to only hide admin bar, you can try a plugin
Hello there,
To remove indexed urls use google webmaster tools
https://www.google.com/webmasters/tools/home?hl=en
You can verify your website and remove the indexed links using URL Removal Tool
Craig, You can hide the admin bar using the following code.
Put it in your child theme’s functions.php file
add_filter('show_admin_bar', '__return_false');
For issue 5
Try with this code
.footer-widgets .container { overflow: visible !important; }
That code make the dropdown visible.
But if you want the dropdown upside, then use the following code too.
.footer-widgets .geodir-chosen-container .chosen-drop { top: auto !important; bottom:100% !important; }
This reply has been marked as private.Ok, Follow these steps to sort by last modified.
Note: current code only works for listing pages.
1) Geodirectory > Place Settings > Sort options > Make sure you have added “Date”
2) Select descending should be checked and set as default should be selected too. For value enter “Last Modified”
3) Save it
4) Now paste the following code in your child theme’s functions.php file
function last_modified_geodir_posts_order_by_sort($orderby, $sort_by) { if (($sort_by == 'post_date_desc') && geodir_is_page('listing')) { $orderby = str_replace('posts.post_date desc', 'posts.post_modified desc', $orderby); } return $orderby; } add_filter('geodir_posts_order_by_sort', 'last_modified_geodir_posts_order_by_sort', 10, 2);
Let me know how that goes.
Thanks
Ok, the problem you have only on preview page right?
If yes, can you tell me whether youtube video works on preview page?
Can you also give me the page url where I can test your issue?
bluegnu, I have tested the code in my local before giving it to you. So most probably you are not using the correct field name in my code.
Instead of “google_calendar” try with “geodir_google_calendar”.
If thats not working too, let me know I’ll check your website.
Thanks
This reply has been marked as private.Replace your google_calendar with geodir_google_calendar
geodir prefix is added by GD i guess.
Try that and let me know
If you want to include pages too in search results, add ‘page’ in array
Thanks
Roman, try this code on your child theme’s functions.php file
Heads Up: This code is not properly tested. So make sure its not breaking GD search results by testing it properly.
// search filter function roman_custom_search_filter($query) { if ( !$query->is_admin && $query->is_search) { $query->set('post_type', array('post') ); } return $query; } add_filter( 'pre_get_posts', 'roman_custom_search_filter' );
-
AuthorPosts