Footer Support
This topic contains 10 replies, has 6 voices, and was last updated by Giri 7 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: footer, footer columns
-
AuthorPosts
-
September 28, 2016 at 9:13 pm #274818
Hello. We are using the Supreme Theme which we love. We need to add a disclaimer to our footer section. We tried adding it within the copyright field but it isn’t taking to HTML to add content break.
We thought maybe we’d use the 4 column footer but the disclaimer is far too much to balance the rest of the footer content.
We thought of a couple of other options: (1) merge 2 of the 4 columns or (2) add another row exclusively for the disclaimer. Unfortunately, we aren’t sure how to accomplish either of these and did not find any posts that provided instruction for this.
Could you point me in the right direction?
September 29, 2016 at 4:31 am #275079Hi Cory,
You’ll have to overwrite the copyright section using hooks. Customize the code below to your liking and apply it into the code snippet plugin. https://wordpress.org/plugins/code-snippets/
remove_action( 'dt_footer_copyright', 'dt_footer_copyright_default', 10 ); add_action( 'dt_footer_copyright', 'custom_dt_footer_copyright_default', 10 ); function custom_dt_footer_copyright_default() { $dt_disable_footer_credits = esc_attr(get_theme_mod('dt_disable_footer_credits', DT_DISABLE_FOOTER_CREDITS)); if ($dt_disable_footer_credits != '1') { $theme = wp_get_theme(); $theme_name = $theme->display('Name'); $theme_url = $theme->display('ThemeURI'); if(is_front_page()){ $wp_link = '<a href="https://wordpress.org" target="_blank" title="' . esc_attr__('WordPress', 'directory-starter') . '"><span>' . __('WordPress', 'directory-starter') . '</span></a>'; $default_footer_value = sprintf(__('Copyright © %1$s %2$s %3$s Theme %4$s', 'directory-starter'),date('Y'),"<a href='$theme_url' target='_blank' title='$theme_name'>", $theme_name, "</a>"); $default_footer_value .= sprintf(__(' - Powered by %s.', 'directory-starter'), $wp_link); }else{ $wp_link = __('WordPress', 'directory-starter'); $default_footer_value = sprintf(__('Copyright © %1$s %2$s Theme', 'directory-starter'),date('Y'), $theme_name); $default_footer_value .= sprintf(__(' - Powered by %s.', 'directory-starter'), $wp_link); } echo $default_footer_value; }else{ echo esc_attr( get_theme_mod( 'dt_copyright_text', DT_COPYRIGHT_TEXT ) ); } }
September 29, 2016 at 6:31 pm #275470Thanks Kor! This is my first website, so bare with me. I’ve installed the plugin and added the code you’ve provided. I did a little research on hooks but honestly, I’m confused.
My question is, do I enter my footer copy within the code you provided? If so, where do I add it? Or is there another step I need to take?
I sincerely appreciate the help.
September 29, 2016 at 9:25 pm #275512Quick update, problem solved for the most part. Got the footer copy appear as we want them. However, the “../events” and “../places” directory pages do not show the footer. The detail and author pages do show it. Is there a way to have it show on these pages as well?
September 30, 2016 at 8:14 am #275584Hi Cory,
I believe my colleague has answered your question in this thread https://wpgeodirectory.com/support/topic/site-footer-missing-from-places-and-events/
Thanks!
November 3, 2016 at 2:08 am #297205Kor, Guust, et al, I found what I think might be an easier way to change the footer of the Supreme theme:
– use a Po/Mo editor, and edit the library of the Directory Starter. The Footer copyright stuff is all buried in there – a Po/Mo editor gets at it quickly, and allows you to paste links (including to new windows) and customized text.
Works like a charm.
Hope this helps.
November 3, 2016 at 5:41 pm #297549Cool, thanks for sharing! 🙂
November 10, 2016 at 4:35 am #301124James’ workaround Works great in native (en-US) language, unfortunatelly I created a .mo version in Spanish and for some reason it doesn’t take the Copyright changes. I also tried the code snippets but gets a duplicate Copyright text, any idea what may be wrong?. I have tried it in many ways to customize to only show Copyright (c), no theme or powered by wordpress reference.
Thanks
November 14, 2016 at 6:50 am #303233Hi Guys, Please try this code if Kor code doesn’t work.
Thanks
November 16, 2016 at 2:02 am #304505Giri, I appreciate it. Worked as magic.
Thanks
November 16, 2016 at 8:39 am #304638You are welcome Eduardo.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket