Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #859789

    Hi

    I am using Enfold with Geodirectory plugin for a directory site.

    For one type of archive pages created by GD I would like to set the width of the side bar to 50% (or more). But I do not want to change the dimensions of the sidebar at other pages. I want a bigger map and less white space – maybe there is a better way. (1)

    For one type of archive pages created by GD I would like to show the title of the page. But default my setting is no title. (2)

    I searched in the forum and found some answers that looked close, but I can’t fix it.

    Hope you can help. Thanks, Peter

    • This topic was modified 7 years, 1 month ago by Peter322.
    #860389

    Hey Peter322,

    Thank you for using Enfold.

    1.) Please use this to increase the width of the sidebar.

    .geodir-page main.template-page.content.av-content-small.alpha.units {
        width: 50%;
    }

    2.) Use the following filter in the functions.php file.

    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
    function avf_header_setting_filter_mod($header) {
      if( is_singular('gd_place') ) {
        $header['header_title_bar'] = 'title_bar';
      }
    	return $header;
    }

    Best regards,
    Ismael

    #860579

    Hi Ismael,

    Thanks and great!

    Just one thing. The sidebar issue (1) also wides the content of the details pages (nr 2 -pages) not just the listings pages. I can’t find the solution to that. Other non GD pages are running fine with small sidebar.

    Thanks, Peter

    #861244

    Hi,

    Please provide a link to the “listings” page so that we can inspect it.

    Best regards,
    Ismael

    #861377

    Hi Ismael

    Thanks, Sorry for not being specific. Different types of archive pages are created.

    I want the listings page (1; see example private data) to have a wide sidebar, as succeeded with the code. I want just that page to have wider sidebar settings.

    The code results in a wider sidebar on the details page (2 see example private data). I want those pages to have small sidebar.

    Best regards, Peter

    #861780

    Hi,

    Thank you for the info.

    Please replace the css code with the following.

    .archive.geodir-page main.template-page.content.av-content-small.alpha.units {
        width: 50%;
    }

    Best regards,
    Ismael

    #861840

    Hi Ismael,

    That’s it! Thanks a lot.

    Best wishes, Peter

    #862219

    Hi Peter,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.