WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change te color of a class (5 posts)

  1. Ricardo
    Member
    Posted 3 years ago #

    In my footer, there is a link called 'return to top'. I want to change the color of that link (but only that link). Is this possible?

    http://www.fastforwardandrewind.com

  2. a4jp.com
    Member
    Posted 3 years ago #

    If you look at the footer.php you can add anything you like in there.

  3. Ricardo
    Member
    Posted 3 years ago #

    How can I change the color of 'return to top' then? (Can it also be done with CSS)? This is the code:

    <div class="footer-menu-wrap">
        	<ul id="footer-menu" class="clearfix">
    			<?php /* Footer menu */
                $args = array(
                    'container' => '',
                    'fallback_cb' => 'none',
                    'depth' => 2,
                    'theme_location' => 'footer-menu',
                    'items_wrap' => '%3$s'
                );
                wp_nav_menu(apply_filters('graphene_secondary_menu_args', $args));
                ?>
                <?php if ( ! $graphene_settings['hide_return_top'] ) : ?>
            	<li class="menu-item return-top"><a href="#"><?php _e('Return to top', 'graphene'); ?></a></li>
                <?php endif; ?>
            </ul>
        </div>
  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    first idea would be:
    .return-top a { color: #123edf; }

    however, there are quite a few more specific rules than .return-top a - therefore:

    #footer .footer-menu-wrap .return-top a { color: #123edf; }

    add this to style.css of your theme.

  5. Ricardo
    Member
    Posted 3 years ago #

    Thanks! It works perfectly! This was exactly the advice needed! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.