Viewing 4 replies - 1 through 4 (of 4 total)
  • If you look at the footer.php you can add anything you like in there.

    Thread Starter Ricardo

    (@r1cardo01)

    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>

    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.

    Thread Starter Ricardo

    (@r1cardo01)

    Thanks! It works perfectly! This was exactly the advice needed! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change te color of a class’ is closed to new replies.