Short codes, how far can they go?

This topic contains 46 replies, has 4 voices, and was last updated by  Jeff Adams 7 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #423654

    Jeff Adams
    Free User
    Post count: 1780

    I’m starting to use the shortcodes. I’m not sure how deep they can go. It would seem like there would be shortcodes for homepage, listing/search results pages, and detail page, the most immportant “visitor oriented” pages.

    What’s confusing is the nomenclature doesn’t appear to be consistent. In the widgets area “details” refers to the listing and “listing” refers to the page that renders search results, I think… But, on the Geodirectory website page where shortcodes are the listing seems to be the details page. So, my questions are:

    Is there a way to recreate (I’m using Divi builder for Extra Theme by Elegant Themes) the “details” page?

    Is there a way to recreate the “Listings” page that comes up for search results?

    Are there any pages that I cannot recreate?

    Is there somewhere that explains in more detail how to create these pages using shortcodes?

    This is from the shortcodes page, what it covers, and it seems incomplete:
    Home Page Map
    Custom Post Type Categories
    Listings Page Map
    Listing Slider
    Login Box
    Popular Post Category
    Popular Post View
    Recent Reviews
    Related Listings
    Search
    GD Listings
    GD Best Of
    Add Listing Form

    #423664

    Jeff Adams
    Free User
    Post count: 1780

    I am trying to create a custom “location” page. I tried using the shortcode for homepage map and listings page map. Neither work. I’ve put it inside the extra theme (divi module) “fullwidth” and “standard section” code and text modules. Neither work. Am I going about this wrong?

    #423682

    Jeff Adams
    Free User
    Post count: 1780

    Am I going about this wrong? Here’s a one minute video explaining what I’m trying to do. I also mention a another issue, the gap, and how if I’m able to customize the pages using shortcodes then I may be able to remove the gap. But, this is more about the question:

    How do I customize the “Location” page and the “Category” pages (also known sometimes as “Listing Pages” and “Archive Pages”)?

    https://youtu.be/PUWapsTu_Ds

    #423725

    Alex Rollin
    Moderator
    Post count: 27815

    Please see https://wpgeodirectory.com/docs/layout/#directory for more information about pages and layout.

    Is there a way to recreate (I’m using Divi builder for Extra Theme by Elegant Themes) the “details” page?

    – I dont understand, can you provide more info about the objective?

    Is there a way to recreate the “Listings” page that comes up for search results?

    – Search ad listing page are different templates, see link above.

    Are there any pages that I cannot recreate?

    – again I don’t understand the context for what you are trying to achieve.

    If you have a question about a shortcode let us know

    #423730

    Jeff Adams
    Free User
    Post count: 1780

    “Are there any pages that I cannot recreate?

    – again I don’t understand the context for what you are trying to achieve.”

    There are GD pages that are automatically created and an intrical part of the plugins (e.g. location, login, add listing, etc…). “Are there any pages that I cannot recreate?” As you can see in the video, as I have clearly done with my homepage, I would like to use Divi Builder to create my “entire” website and just use “shortcodes” to place GD where I want it.

    #423731

    Jeff Adams
    Free User
    Post count: 1780

    The link you shared to the “layout” references:

    GD Listings page
    GD Search page
    GD Detail page
    GD Author page

    Is there shortcode available so that I may replace all these pages with a page created by the Divi builder? Because, as I’ve demonstrated in the video, it’s not working on the location page.

    Also, there are “Directory management pages” and “other GD pages”. Can these all be created with shortcode, or, as i originally asked, are there limitations to the shortcode?

    #423732

    Jeff Adams
    Free User
    Post count: 1780

    Most notably I would at least like to “recreate” the the “Directory Pages” using the Divi Builder to, with shortcode, create:

    GD Listings page
    GD Search page
    GD Detail page

    At least! If I can get this done, I’ll be SUPER DUPER HAPPY!!!!! I started to do it on my homepage and started to feel good about it.

    #423735

    Alex Rollin
    Moderator
    Post count: 27815

    It is not possible to recreate all the GD templates with shortcodes, or any of the directory pages, in fact, because GD features depend on templates which cannot be recreated with shortcodes.

    It is possible to add a shortcode to a non-GD page, though. If you need help with a shortcode, just let us know.

    #423744

    Jeff Adams
    Free User
    Post count: 1780

    Are you going to tell me if I can:

    Most notably I would at least like to “recreate” the the “Directory Pages” using the Divi Builder to, with shortcode, create:

    GD Listings page
    GD Search page
    GD Detail page

    At least! If I can get this done, I’ll be SUPER DUPER HAPPY!!!!! I started to do it on my homepage and started to feel good about it.

    #423751

    Jeff Adams
    Free User
    Post count: 1780

    YES!!!!!!! I FIGURED OUT A BUNCH!

    Here’s what I finally did. I created a new location page called locale. Then I went to GD permalinks and changed location to locale. Then I started using shortcodes and wahlah! I’m starting to get somewhere! 🙂

    It may not look like much, but here’s what I have thus far for the lcoation page: https://veganlinked.com/locale/united-states/north-carolina/charlotte/

    Now I just need to figure out how to either make it full width. It’s as if it’s ready for a sidebar but there I have Extra theme on that page set to “no sidebar” and I have nothing in the sidebar.

    And, I’m still stumped on the the location switcher being funky in the menu. I’m trying some shortcodes for that next 🙂

    #423755

    Jeff Adams
    Free User
    Post count: 1780

    Ok, as you may have noticed, I’ve been working all day for a few days, long days and nights, getting this site to this point (both content and layout). Please help me with these last four things.

    1.) Location Switcher is outside of drop down and doesn’t work on mobile device/mode.
    2.) CPT List page, how can I create a template to replace the one that is there now. I did this with the location page by creating a new location page called “locale” and then changing the permalinks to point at the new page locale. Then I simple used the Divi Builder and shortcodes to start building my new location page.
    3.) How can I make the locale page full width (at least within the box) and the footer fullwidth. The footer is not fullwidth on the CPT listing page either. All the other pages have a proper layout and fullwidth footer.
    4.) how can I get rid of that big space at the top?

    https://youtu.be/p2SVl6HHSDY

    #423843

    Alex Rollin
    Moderator
    Post count: 27815

    Now I just need to figure out how to either make it full width. 3.) How can I make the locale page full width (at least within the box) and the footer fullwidth. The footer is not fullwidth on the CPT listing page either. All the other pages have a proper layout and fullwidth footer.

    At GD – Design – Listing you can adjust the width in percentages of the different sections of the page.

    1.) Location Switcher is outside of drop down and doesn’t work on mobile device/mode.

    On desktop this can be achieved with some CSS. Try this, and change the width to meet your needs.

    
    
    
    #menu-item-gd-location-switcher ul.sub-menu {
        min-width: 320px !important;
    }
    

    For mobile, it does not work with your theme, as it is designed to open to the right on mobile. There is a rule you can add to hide it on mobile:

    
    
    
    media only screen and (max-width: 1024px)
    #et-mobile-navigation #et-extra-mobile-menu>li:last-child a {
        display: none !important;
    }
    

    4.) how can I get rid of that big space at the top?

    That is coming from your theme, the rule below, so it would need to be customized with CSS.

    
    
    
    #main-content {
        padding-top: 40px;
    }
    
    #423869

    Jeff Adams
    Free User
    Post count: 1780

    “Now I just need to figure out how to either make it full width. 3.) How can I make the locale page full width (at least within the box) and the footer fullwidth. The footer is not fullwidth on the CPT listing page either. All the other pages have a proper layout and fullwidth footer.

    At GD – Design – Listing you can adjust the width in percentages of the different sections of the page.”

    Before that I said “It may not look like much, but here’s what I have thus far for the lcoation page: https://veganlinked.com/locale/united-states/north-carolina/charlotte/

    I have already changed “home”, “listing”, “search”, “detail” to not have a right section and tried 100% content, 93%, etc… Following what I have done, I have created a page called “locale” to replace “location”. I changed the permalink to use “local”. This way I could design the layout of the search/location lists. I am hoping to do that with the CPT/Category/listings results pages as well if that is possible. But I assume I have to go about it a different way for those pages because they are not in the permalink section for me to redirect to a newly created page.

    So, having said all that, maybe the content isn’t stretching because the permalink change didn’t apply to the “GD Design” “Search Page Layout Settings”???

    #423870

    Jeff Adams
    Free User
    Post count: 1780

    AWESOME, THAT WORKED! THANKS SO MUCH!!!!

    1.) Location Switcher is outside of drop down and doesn’t work on mobile device/mode.

    On desktop this can be achieved with some CSS. Try this, and change the width to meet your needs.

    #menu-item-gd-location-switcher ul.sub-menu {
    min-width: 320px !important;
    }

    #423873

    Jeff Adams
    Free User
    Post count: 1780

    “Now I just need to figure out how to either make it full width. 3.) How can I make the locale page full width (at least within the box) and the footer fullwidth. The footer is not fullwidth on the CPT listing page either. All the other pages have a proper layout and fullwidth footer.

    At GD – Design – Listing you can adjust the width in percentages of the different sections of the page.”

    Before that I said “It may not look like much, but here’s what I have thus far for the lcoation page: https://veganlinked.com/locale/united-states/north-carolina/charlotte/

    I have already changed “home”, “listing”, “search”, “detail” to not have a right section and tried 100% content, 93%, etc… Following what I have done, I have created a page called “locale” to replace “location”. I changed the permalink to use “local”. This way I could design the layout of the search/location lists. I am hoping to do that with the CPT/Category/listings results pages as well if that is possible. But I assume I have to go about it a different way for those pages because they are not in the permalink section for me to redirect to a newly created page.

    So, having said all that, maybe the content isn’t stretching because the permalink change didn’t apply to the “GD Design” “Search Page Layout Settings”???

Viewing 15 posts - 1 through 15 (of 47 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