Z
Z
zarabotok2018-05-25 17:20:30
WordPress
zarabotok, 2018-05-25 17:20:30

Editing footer.php how to move blog?

I can’t install the counter on my site, I plan to put it on the right side.
This is what the code looks like:

<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Donovan
 */

?>
  </div><!-- #content -->

  <?php do_action( 'donovan_before_footer' ); ?>

  <div id="footer" class="footer-wrap">

    <footer id="colophon" class="site-footer container clearfix" role="contentinfo">

      <?php do_action( 'donovan_footer_menu' ); ?>
      <div id="footer-line" class="site-info">
        <a href=”http://сайт/politika”>Политика конфиденциальности</a>
        <?php do_action( 'donovan_footer_text' ); ?>
        <?php donovan_credit_link(); ?>
      </div><!-- .site-info -->
    </footer><!-- #colophon -->

  </div>

</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>

Added to styles
.counters{text-align:right}
and footer after
<a href=”http://сайт/politika”>Политика конфиденциальности</a>

added
<div class="counters">
Коды счётчиков.
</div>

The result is in the picture below. As a result, a new line is obtained and the counter rises below.
In the pictures, I showed how I want to make the counter be on a par with other text. How can I do that?
5b081ba403fbc261225818.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Toropov, 2018-05-26
@nefone

<div></div>
It's a block element, so it takes up the whole line.
You can do several in .site-info and set each one to "style=float: left;"

S
Syomka Gavrilenko, 2018-05-26
@cema93

add in css
.counters{float:right}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question