Tagged: archive pages, geodirectory, sidebar, title, width
-
AuthorPosts
-
October 3, 2017 at 9:02 pm #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.
October 5, 2017 at 4:53 am #860389Hey 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,
IsmaelOctober 5, 2017 at 12:57 pm #860579Hi 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
October 7, 2017 at 3:15 am #861244Hi,
Please provide a link to the “listings” page so that we can inspect it.
Best regards,
IsmaelOctober 7, 2017 at 3:45 pm #861377Hi 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
October 9, 2017 at 8:52 am #861780Hi,
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,
IsmaelOctober 9, 2017 at 11:27 am #861840Hi Ismael,
That’s it! Thanks a lot.
Best wishes, Peter
October 10, 2017 at 4:24 am #862219 -
AuthorPosts
- You must be logged in to reply to this topic.