Footer Support

This topic contains 10 replies, has 6 voices, and was last updated by  Giri 8 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #274818

    Cory Sanchez
    Expired Member
    Post count: 12

    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?

    #275079

    Kor
    Moderator
    Post count: 16516

    Hi 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 &copy; %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 &copy; %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 ) );
    	}
    }
    
    #275470

    Cory Sanchez
    Expired Member
    Post count: 12

    Thanks 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.

    #275512

    Cory Sanchez
    Expired Member
    Post count: 12

    Quick 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?

    #275584

    Kor
    Moderator
    Post count: 16516

    Hi 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!

    #297205

    James Simone
    Buyer
    Post count: 18

    Kor, 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.

    #297549

    Paolo
    Site Admin
    Post count: 31206

    Cool, thanks for sharing! 🙂

    #301124

    Eduardo Sanchez
    Expired Member
    Post count: 110

    James’ 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

    #303233

    Giri
    Expired Member
    Post count: 3155
    #304505

    Eduardo Sanchez
    Expired Member
    Post count: 110

    Giri, I appreciate it. Worked as magic.

    Thanks

    #304638

    Giri
    Expired Member
    Post count: 3155

    You are welcome Eduardo.

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