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-
AuthorPosts
-
March 27, 2018 at 4:10 pm #423654
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 FormMarch 27, 2018 at 5:03 pm #423664I 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?
March 27, 2018 at 5:36 pm #423682Am 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”)?
March 28, 2018 at 12:05 am #423725Please 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
March 28, 2018 at 12:22 am #423730“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.
March 28, 2018 at 12:26 am #423731The link you shared to the “layout” references:
GD Listings page
GD Search page
GD Detail page
GD Author pageIs 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?
March 28, 2018 at 12:28 am #423732Most 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 pageAt 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.
March 28, 2018 at 12:40 am #423735It 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.
March 28, 2018 at 1:13 am #423744Are 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 pageAt 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.
March 28, 2018 at 2:29 am #423751YES!!!!!!! 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 🙂
March 28, 2018 at 4:06 am #423755Ok, 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?March 28, 2018 at 5:32 pm #423843Now 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; }
March 28, 2018 at 6:00 pm #423869“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”???
March 28, 2018 at 6:03 pm #423870AWESOME, 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;
}March 28, 2018 at 6:07 pm #423873“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”???
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket