Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Random Username on February 01, 2023, 12:20:51 PM

Title: Where can I adjust position of copyright?
Post by: Random Username on February 01, 2023, 12:20:51 PM
The SMF copyright is pushed down the screen a fair ways. How can I move it up so it's closer to the info center/roundframe?

Thank you!

Title: Re: Where can I adjust position of copyright?
Post by: Aleksi "Lex" Kilpinen on February 01, 2023, 12:22:43 PM
The actual copyright is called in index.template.php - But, the answer really depends on what is pushing it that far in the first place.
Title: Re: Where can I adjust position of copyright?
Post by: Kindred on February 01, 2023, 01:24:57 PM
look at your CSS -- it looks like you have a large defined footer section.  you don't need to move the copyright in code --  you need to reduce the footer in CSS.
Title: Re: Where can I adjust position of copyright?
Post by: Random Username on February 01, 2023, 03:08:03 PM
Thank you, Kindred. The issue was this line in css and adjusting to zero fixed:
flex: 0 0 auto;
Follow-up question. I'd like to include the disclaimer, "Mysite.com is not affiliated with nor endorsed by Simple Machines," on the same line as the copyright so as not to make the page longer. The html is below. Can someone assist? Thank you very much:

// There is now a global "Go to top" link at the right.
    echo '
        <ul>
            <li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' &#9650;</a></li>
            <li class="copyright">', theme_copyright(),  '</li>
        </ul>';
Title: Re: Where can I adjust position of copyright?
Post by: Kindred on February 01, 2023, 08:32:15 PM
So? Add the text before the </li>
Title: Re: Where can I adjust position of copyright?
Post by: TwitchisMental on February 01, 2023, 08:37:17 PM
Quote from: Random Username on February 01, 2023, 03:08:03 PMThank you, Kindred. The issue was this line in css and adjusting to zero fixed:
flex: 0 0 auto;
Follow-up question. I'd like to include the disclaimer, "Mysite.com is not affiliated with nor endorsed by Simple Machines," on the same line as the copyright so as not to make the page longer. The html is below. Can someone assist? Thank you very much:

// There is now a global "Go to top" link at the right.
    echo '
        <ul>
            <li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' &#9650;</a></li>
            <li class="copyright">', theme_copyright(),  '</li>
        </ul>';

As Kindred said, you will just need to add it after the copyright and before the </li>

So something like this -
<li class="copyright">', theme_copyright(), ' | <a href="https://www.simplemachines.org/community/index.php?action=profile;u=218416">PurpleHaze Theme By: TwitchisMental</a> </li>


Title: Re: Where can I adjust position of copyright?
Post by: Random Username on February 03, 2023, 07:20:01 AM
Thank you, gentlemen.