• Resolved chrisdavisberry

    (@chrisdavisberry)


    Hi Eyal,

    Is there a method to hide the additional information fields that GEOmyWP uses without hacking the plugin?

    This applies to two specific places:

    1. On an individual post edit page there is the section: “Additional Information” – I would like to hide these fields.

    2. On an individual post page (on the map locator wppl-info-window ) there the additional fields are displayed even when empty:

    Address: ***address shows here***
    Phone: N/A
    Fax: N/A
    Email: N/A
    Website: N/A

    For example > https://handheld.simplecsr.com/walk/nettlebed-walk/

    Thanks
    Chris

    https://www.ads-software.com/plugins/geo-my-wp/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi Chris,
    1) to hide the additional info box in the admin simply use the CSS:

    .gmw-location-section.additional-information-wrapper {
         display:none;
    }

    2) You can hide the additional information of the info window when creating/editing the form. There are checkboxes in the “Search Results” tab where you can choose which fields to hide/show.

    Thread Starter chrisdavisberry

    (@chrisdavisberry)

    Hi Eyal,

    I am using a child theme with custom css panel. Adding that code to either the custom css theme panel or my own child does not hide this.

    .gmw-location-section.additional-information-wrapper {
    display:none;
    }

    I have made other changes to the CSS but only by copying the files into my theme.

    Where/ which file do I need to update this in to hide this on the create forms?

    Many thanks
    Chris

    This should work with 2.6.4.2:

    div.additional-information-wrapper {
    	display:none !important;
    }
    Thread Starter chrisdavisberry

    (@chrisdavisberry)

    Hi,

    1. I haven’t managed to find a way to edit or hide these admin fields. NO CSS is working for me. Maybe i need to add it in a different css file. (I did find an admin one which may give some clues)

    2. Is there a template file I can access to edit the details that show in the map wppl-info-window? (I would like to include a link button to the post, and list some basic post details or taxonomy terms and make the thumbnail into a link.)

    Many thanks
    Chris

    Hi, I’m testing this plugin out at the moment and just wanted to add to this thread as I’m also interested in ways to disable those extra fields. It’d be great if this could be a checkbox in the settings pages to turn on & off.

    I will try the CSS method for now but it would be better not to have to load those fields at all if not needed.

    Many thanks, great plugin! =)

    Plugin Author Eyal Fitoussi

    (@ninjew)

    @chrisdavisberry,

    1) You should add the CSS to the stylesheet that loads in the admin and not the front-end.

    2) The new coming version of GEO my WP 2.5 includes a new hook which allows you to modify the marker info-window.

    @pinkishhue,
    At the moment it will only be possible to hide the field via CSS. Other than that will require additional code modification and could cause JavaScript issues.

    Here’s how to add the info to the admin CSS for anyone unsure:

    – Create a new plugin* containing the code below (or add the code to a plugin if you already have one that contains general functions for your site)

    <?php
    /**
     * Plugin Name:	 Hide GEOMYWP input
     */
    
    add_action('admin_head', 'my_custom_admin_css');
    
    function my_custom_admin_css() {
      echo '<style>
    		/* Hide this sections */
    		div.additional-information-wrapper {
    			display: none !important;
    		}  </style>';
    }

    *If you’re new to making plugins, simply make a folder in your wp-content/plugins folder called something like ‘geomywp-hide-input’ then in there create a plain text file called something like ‘geomywp-hide-input.php’ and put the code above in to it.

    You can also use this method to hide other bits of the GEOMYWP input if needed.

    @eyal Fitoussi the only bit I couldn’t hide in CSS is where there’s email, fax, website etc. – these are in table rows and the rows don’t have CSS class or id’s so perhaps they could be added in a future version? (Also on a side note – I noticed fax had a small f instead of capital and the other labels all started with capital letters)

    Plugin Author Eyal Fitoussi

    (@ninjew)

    @pinkishhue,
    Thank you for posting the tip above about hiding the information.

    Are you looking to hide only certain rows from the contact information or all of them. You can hide the entire box which has the class “.extra-info-tab”. Regardless I will add a class per row in the next release.

    As well I will fix the fax able. Thank you for that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Method needed to hide the Additional Information fields’ is closed to new replies.