Adding Instructions – Supreme Theme

This topic contains 4 replies, has 3 voices, and was last updated by  Paolo 7 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #288008

    Jeff
    Buyer
    Post count: 188

    My client is looking to add instructions to the Add listing page using the Supreme Theme. I know the recommended method would be to create a child theme and add them to custom templates there, but as Supreme is a child theme, is there another method to do this, and survive the (admittedly infrequent) theme updates?

    #288022

    Guust
    Moderator
    Post count: 29970

    Try this using code snippets, that way it is not affected by any changes to any theme.

    
    
    function geodir_add_place_before_main_content_custom() {
    	if (isset($_GET['listing_type']) && $_GET['listing_type'] == 'gd_place') {  
    		?>
    <div>bla bla</div>	
    		<?php
    	}
    }
    add_action('geodir_add_listing_before_main_content', 'geodir_add_place_before_main_content_custom');
    #288448

    Paolo
    Site Admin
    Post count: 31206

    p.s. if you want to add text above the form, you can write it in the add listing page text editor.

    For Guust’s code you can use code snippets plugin: https://wordpress.org/plugins/code-snippets/

    Let us know how it goes.

    Thx

    #288461

    Jeff
    Buyer
    Post count: 188

    Thanks! Forgot about the pages.

    #288601

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket