Supreme – widgets
This topic contains 11 replies, has 2 voices, and was last updated by Sam 9 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 16, 2016 at 5:56 pm #192330
Hi Guys,
The GD Home Page widgets are not showing up on the home page. I am able to enter information into the widget on the widget page but it doesn’t appear anywhere. And they do not show up in the Customize theme area either.(But i did notice that it will appear if I choose a region for some reason) Any help would be great!
The footer widgets DO appear everywhere.
Interesting Note… On my real site, I just uploaded 0.3.0. (Where the widgets are having an issue) On my demo site, I first had 0.2.0 and then updated to 0.3.0 and there are no widget issues there at all.
Thanks!
May 16, 2016 at 8:46 pm #192532That is because the Home page is a regualar page and when you select a location, you are visiting the location page.
You can use beaver builder plugin to add widgets to the home page.
Thanks
May 17, 2016 at 9:07 am #192744This reply has been marked as private.May 17, 2016 at 3:57 pm #193012You’ll need to customize code in functions.php.
Make sure to take note of this, because being Supreme a child theme, after next update (which should be last) you will ahve to apply this again.
Open functions.php and change this:
$sd_address = '<div class="sd-address">'; if (isset($post->post_city) && $post->post_city) { $sd_address .= $post->post_city; } if (isset($post->post_region) && $post->post_region) { $sd_address .= ', ' . $post->post_region; } if (isset($post->post_country) && $post->post_country) { $sd_address .= ', ' . $post->post_country; } $sd_address .= '</div>';with :
$sd_address = '<div class="sd-address">'; if (isset($post->post_address) && $post->post_address) { $sd_address .= $post->post_address; } $sd_address .= '</br>'; if (isset($post->post_city) && $post->post_city) { $sd_address .= $post->post_city; } if (isset($post->post_region) && $post->post_region) { $sd_address .= ', ' . $post->post_region; } if (isset($post->post_zip) && $post->post_zip) { $sd_address .= ', ' . $post->post_zip; } if (isset($post->post_country) && $post->post_country) { $sd_address .= ', ' . $post->post_country; }$sd_address .= '</div>'; echo $sd_address;Starts at line 749.
Thanks
May 17, 2016 at 6:03 pm #193123This reply has been marked as private.May 17, 2016 at 10:36 pm #193305This reply has been marked as private.May 19, 2016 at 11:52 pm #194635This reply has been marked as private.May 20, 2016 at 2:40 am #194750This reply has been marked as private.May 20, 2016 at 3:28 pm #195134that looks correct. Good job! 🙂
May 20, 2016 at 4:45 pm #195160This reply has been marked as private.May 20, 2016 at 5:05 pm #195165🙂 Not that elementary…
add:
$sd_address .= '<strong>';before the custom field
and
$sd_address .= '</strong>';after the custom field.
Let me know if it makes sense.
Thanks
May 20, 2016 at 8:18 pm #195350This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket