Moving details page sidebars to widgets

This topic contains 6 replies, has 3 voices, and was last updated by  Giri 7 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #353217

    key
    Free User
    Post count: 24

    Hello,

    I’m trying to get geodirectory working with the fantastic Hueman theme (fast, responsive, great design) and am having an issue with the sidebar on listing details page. I’d like to either create a custom template for the details that uses the Hueman theme’s widget areas or see if the various blocks of information in the listing details page could be turned into widgets which would allow them to be placed anywhere (and could be useful for integrating with lots of different themes). What’s the best way to accomplish this?

    Currently, this is the home page I’ve created. Everything looks good. I’m able to use the GD widgets to pretty effectively create a home page the way I want it:

    Home

    But when I click on a listing to get the details, this is the result:

    detail

    What I would like is to move the information in the detail listing page’s built in sidebar, to the theme’s sidebar:

    desired look

    Seems like it would be ideal if the listing page’s sidebar items were actually widgets that could be placed anywhere, but I’m not sure if that’s even possible.

    I did do some searching through the forums and saw that other people are also using this great theme and there was a mention that perhaps some compatibility with it could be developed if there were other people using the theme.

    Thanks!

    #353246

    key
    Free User
    Post count: 24
    This reply has been marked as private.
    #353463

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the proposed solution of making all with widgets is not ideal, it would make the details page pretty slow.

    Achieving what you want is possible, but will require several theme compatibility snippets.

    I asked to the developers to have a look at it and do their best to point you in the right direction.

    Thanks

    #353725

    key
    Free User
    Post count: 24

    Thank you Paolo. I *think* I may have some of the spacing sorted out for the center content, with some changes to a Hueman child theme. Inside of the child theme I created a geodirectory folder and placed a copy of listing-detail.php template.

    I commented out the ###### SIDEBAR ON RIGHT ###### section, which removed the listing-detail sidebar in the center content. Then I added the following custom CSS:

    
    
    #geodir-wrapper-content
    {
    	width: initial;
    	padding-left: 10px;
    	padding-right: 10px;
    }

    This cleaned up the positioning of the center content. However, there are a couple of weird things happening with images. On listings created by the Dummy Content generator, the image rotation displays correctly, like this:

    Correct

    But on listings I’ve created, the image rotation shows thumbnails under the main image, and the main image is showing larger thumbnails:

    Wrong

    I can’t figure out why it is only affecting listings that I created. If I ALT-TAB away and back, the main image will then be formatted correctly, but there are still thumbnails under the image:

    After alttab

    Of course, the biggest issue is still how to get the Hueman sidebars to appear and fill with the content from the listing-detail sidebar. Hopefully your developers can come up with some snippets fairly easily.

    Thanks!

    #353946

    Giri
    Expired Member
    Post count: 3155

    Hi there,

    We have a hook called

    geodir_detail_sidebar

    . You can use that to add your theme sidebars.

    However detail page sidebar content not powered by widgets. So you cannot just drag and drop.

    You may have to style theme to make it compatible with your theme sidebar.

    This cleaned up the positioning of the center content. However, there are a couple of weird things happening with images. On listings created by the Dummy Content generator, the image rotation displays correctly, like this:

    If there is only one image, then it won’t show thumbnail in the slider I guess.

    Please post your ftp credentials and wp admin login details. I’ll add the code to match your design.

    Its hard for me to give you code without inspecting your code.

    Thanks

    #354145

    key
    Free User
    Post count: 24

    Thanks for the reply. The site is currently running on a development machine there is no way for me to provide access to it at the moment, but I’ll work on moving it over to an external server. I’ll update this thread once I’ve been able to do that.

    Thanks!

    #354308

    Giri
    Expired Member
    Post count: 3155

    Ok Thanks

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

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

Open Support Ticket