mar mop
Forum Replies Created
-
AuthorPosts
-
so login is ok but recreating virtual pages failed – do I understand correctly?
Thanks for notifying Stiofan!
November 18, 2014 at 3:18 pm in reply to: browsers differences between firefox and safari for GD widgets #21856Safari:
– map in correct place
– links work fine on detail page
– widget is back in safari in the footerfirefox
– map back on the right and overlapping information box (since code was removed)
– links in tabs and tags/categories still not working on detail pages – expect for the review tag
– widget in footer seems to appear and disappear as it pleases. I was just writing that it was gone, and now its back again….November 18, 2014 at 3:10 pm in reply to: browsers differences between firefox and safari for GD widgets #21852OK, should I remove the CSS? or just wait for now?
This reply has been marked as private.November 18, 2014 at 3:04 pm in reply to: browsers differences between firefox and safari for GD widgets #21848This reply has been marked as private.This reply has been marked as private.Hi Simone,
I have followed the tutorial and added the code to the functions.php file in my child themes folder (right after the first <?php tage). The code in the file now looks as follows:
<?php function geodir_restore_default_pages() { //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' ); geodir_restore_default_page( esc_sql( _x('listings', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_listing_page', __('All Listings', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('add-listing', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_add_listing_page', __('Add Listing', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('listing-preview', 'page_slug', 'geodirectory') ), 'geodir_preview_page', __('Listing Preview', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('listing-success', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_success_page', __('Listing Success', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('location', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_location_page', __('Location', GEODIRECTORY_TEXTDOMAIN), '' ); } function geodir_restore_default_page( $slug, $option, $page_title = '', $page_content = '', $post_parent = 0,$status = 'virtual' ) { global $wpdb, $current_user; $page_found = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;", array($slug) ) ); if ($page_found) : // Page exists update_option($option, $page_found); return; endif; $page_data = array( 'post_status' => $status, 'post_type' => 'page', 'post_author' => $current_user->ID, 'post_name' => $slug, 'post_title' => $page_title, 'post_content' => $page_content, 'post_parent' => $post_parent, 'comment_status' => 'closed' ); $page_id = wp_insert_post($page_data); add_option($option, $page_id); } add_action('init' , 'geodir_restore_default_pages') ; add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); } add_action('wp_footer' , 'geodir_set_custom_map_style'); function geodir_set_custom_map_style() { ?> <script> var geodir_custom_map_style =[ // Google Map Styles Starts Here {"featureType":"water","stylers":[{"visibility":"on"},{"color":"#acbcc9"}]}, {"featureType":"landscape","stylers":[{"color":"#f2e5d4"}]}, {"featureType":"road.highway","elementType":"geometry","stylers":[{"color":"#c5c6c6"}]}, {"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#e4d7c6"}]}, {"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#fbfaf7"}]}, {"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#c5dac6"}]}, {"featureType":"administrative","stylers":[{"visibility":"on"},{"lightness":33}]}, {"featureType":"poi.park","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":20}]}, {"featureType":"road","stylers":[{"lightness":20}]} // Google Map Styles End Here ] </script> <?php }
However, when I check the link you mentioned above (yourdomain/wp-admin/edit.php?post_status=virtual&post_type=page) I can still only see three virtual pages. Also, I am still forwarded to a 404 page after I have tested “send to friend”
Am I doing something wrong?
Thanks
November 18, 2014 at 2:36 pm in reply to: browsers differences between firefox and safari for GD widgets #21842This reply has been marked as private.November 18, 2014 at 1:41 pm in reply to: After advanced search menu bar for theme disappears #21838Hi John,
Did you by any chance find why my menu bar disappears?
thanks,
Marreperfect thanks
Thanks for the link to the tutorial but I have not touched any of the virtual pages – and they are all there. Should I still follow the tutorial?
I am using a child theme to change the colors of the map – my first ever child theme by the way 🙂 – does that influence these results?
done!
ok, this is now officially the dumbest question of the day. Sorry I did not look close enough…. 🙁
This reply has been marked as private.This reply has been marked as private. -
AuthorPosts