How to move title from main content to sidebar

This topic contains 2 replies, has 2 voices, and was last updated by  f.daliessi 9 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #65865

    f.daliessi
    Expired Member
    Post count: 85

    as title says, what I must add to functions.php to move Place’s title from main content to sidebar?

    Thanks in advance

    #65957

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    1st remove the title from the main content:

    remove_action('geodir_details_main_content', 'geodir_action_page_title', 20);

    This is how the page elements are added and ordered by default in th main content:

    
    
    
    add_action('geodir_details_main_content', 'geodir_action_before_single_post', 10);
    add_action('geodir_details_main_content', 'geodir_action_page_title', 20);
    add_action('geodir_details_main_content', 'geodir_action_details_slider', 30);
    add_action('geodir_details_main_content', 'geodir_action_details_taxonomies', 40);
    add_action('geodir_details_main_content', 'geodir_action_details_micordata', 50);
    add_action('geodir_details_main_content', 'geodir_show_detail_page_tabs', 60);
    add_action('geodir_details_main_content', 'geodir_action_after_single_post', 70);
    add_action('geodir_details_main_content', 'geodir_action_details_next_prev', 80);

    Now add it back on top of the sidebar:

    add_action( 'geodir_detail_page_sidebar','geodir_action_page_title',0);

    Thanks

    #67273

    f.daliessi
    Expired Member
    Post count: 85
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount