WordPress.org

Ready to get started?Download WordPress

Forums

Highwind
[resolved] Change footer text + moving the subtitle (6 posts)

  1. Rnlhellevoort
    Member
    Posted 8 months ago #

    Hi there,

    I would like to remove the footer text and put in my own, but adding remove_action( 'highwind_footer', 'highwind_credit, 20 ); to functions.php (as suggested in an other topic) screwed my whole website up haha, had to remove the line in FTP because my website stopped working.

    What should I do? I also would like to use the website's subtitle but if I don't use the site title with it it overlaps my custom header logo. I would like to move it downwards a bit. Is there something I can add in the custom css?

    My website is www. a d verzuim begeleiding . nl (sorry for the blank spaces, I don't want it to show up in google)

    Thanks in advance :) great theme!

  2. Rnlhellevoort
    Member
    Posted 8 months ago #

    With site subtitle I mean site description :)

  3. johpg
    Member
    Posted 7 months ago #

    Adding
    remove_action( 'highwind_footer', 'highwind_credit, 20 );
    to functions.php of my child theme DOESN'T WORK for me.

    In fact adding adding "remove_action" for anything into functions.php of my child theme has no effect.

    The only way I can make changes is to comment out the "add_action" line in theme-actions.php in the parent Highwind theme.

    Why isn't remove_action working when used in my child theme?

  4. johpg
    Member
    Posted 7 months ago #

    Okay, I've found out why remove_actions don't work on the child theme.

    The child theme's functions.php loads before the parent theme's functions.php
    This means a remove_action in the child theme is trying to remove something that hasn't yet been loaded by the parent.
    See http://www.marcusnyberg.com/2012/02/03/using-remove_action-in-a-wordpress-child-theme/

    However, the solution provided in the above reference creates a bigger problem.

    I added this code to my child theme's functions.php:

    function removeParentFunctions() {
    remove_action( 'highwind_footer', 'highwind_credit, 20 );
    }
    
    add_action('after_setup_theme','removeParentFunctions');

    This caused the "White Screen of Death" on my site. A completely inaccessible site. I had to access functions.php by FTP and remove the above code for my site to become visible again.

    The WSOD was also reported here:
    http://wordpress.org/support/topic/change-the-footer-text-and-change-the-sidebar-to-the-left

    That thread (incorrectly marked as resolved) is about the same issue as I am reporting in this thread.

    Current status:
    The theme author is giving incorrect information regarding the use of remove_action in a child theme.
    The apparently correct way to use remove_action in a child theme completely breaks this theme.

    Anybody have any ideas?

  5. jameskoster
    Member
    Theme Author

    Posted 7 months ago #

    The issue is not Highwind, it is the code you've been given. There's a missing '.

    Try this instead:

    function removeParentFunctions() {
    remove_action( 'highwind_footer', 'highwind_credit', 20 );
    }
    
    add_action('after_setup_theme','removeParentFunctions');
  6. AJ
    Member
    Posted 7 months ago #

    The following worked great for removing credits and adding my own:

    // remove the Highwind and WordPress Credits from the footer but give them lots of love for amazing work!
    
    function removeHighwindCredit() {
    remove_action( 'highwind_footer', 'highwind_credit', 20 );
    add_action( 'highwind_footer', 'my_footer_content' );
    }
    //add custom credits/text to the footer
    function my_footer_content() {
    echo 'All content ©';
    }
    add_action('after_setup_theme','removeHighwindCredit');

    Highwind is a great theme, thanks!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.