GeoDirectory SupportModify HTML output – GeoDirectory Support https://wpgeodirectory.com/support/topic/modify-html-output/feed Sat, 15 Mar 2025 05:38:31 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/modify-html-output/#post-39745 <![CDATA[Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39745 Sun, 17 May 2015 13:31:00 +0000 tringwebdesign I know this can be done and is probably a lack of my understanding of how the actions/filters work. Can someone provide an example of modifying the HTML output.

E.g. I would like on the detail event listing page to have the words “Event Details” and move the actual event title underneath the image carousel (action example?)

Another (filter?) example is removing the event image form the map bubble (.geodir-bubble_image .geodir_thumbnail – setting this to display: none !impoortant; doesn’t seem to work)

]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39748 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39748 Sun, 17 May 2015 13:40:08 +0000 Simone this should be working


.geodir-bubble_image .geodir_thumbnail
{display:none !important;}

in your sample you had two “o” in !important

About the title in the detail, I’m sure I have written a function here in the forum, I will search it and let you know

]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39751 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39751 Sun, 17 May 2015 13:49:59 +0000 tringwebdesign This did the trick with the bubble image


.geodir-bubble_image {
	display: none !important;
}

I think the other issue has something to do with geodir_action_before_single_post.

edit: this might be it: https://wpgeodirectory.com/support/topic/move-slider-gallery/

]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39752 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39752 Sun, 17 May 2015 13:58:47 +0000 tringwebdesign Have replaced the event title below the image, just need to work out how to add more html into the main_content


remove_action( 'geodir_details_main_content', 'geodir_action_page_title',20);
add_action( 'geodir_details_main_content', 'geodir_action_page_title',35);
]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39753 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39753 Sun, 17 May 2015 14:01:51 +0000 Simone What you mean with the HTML output? You mean based on the post type (e.g. only in events?)
you can make something like that, in the function


$current_posttype = geodir_get_current_posttype();
if ($current_posttype =="gd_event") {
echo "bla";
} 
]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39754 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39754 Sun, 17 May 2015 14:06:09 +0000 tringwebdesign On the event listing page (domain.com/events/united-kingdom/greater-london/london/museum/star-wars-at-madame-tussauds/) inject the following:


<article itemtype="http://schema.org/LocalBusiness" itemscope="" class="post-76 gd_event type-gd_event status-publish has-post-thumbnail hentry gd_event_tags-museum-1 gd_event_tags-star-wars gd_eventcategory-museum" id="post-76">
    <h2>Event Details</h2>
            <div class="geodir_flex-container">

So

<h2>Event Details</h2>

is inserted before the flexslider

]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39756 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39756 Sun, 17 May 2015 14:13:45 +0000 tringwebdesign Got it, in my functions.php:


add_action('geodir_before_single_post' , 'itson_geodir_before_single_post', 10);

function itson_geodir_before_single_post(){
?>

<h2>Event Details</h2>

<?php
}

from your post: https://wpgeodirectory.com/support/topic/share-buttons/#post-29165

]]>
https://wpgeodirectory.com/support/topic/modify-html-output/#post-39759 <![CDATA[Reply To: Modify HTML output]]> https://wpgeodirectory.com/support/topic/modify-html-output/#post-39759 Sun, 17 May 2015 14:14:40 +0000 Simone great! 🙂

]]>