• Resolved izzyiz

    (@izzyiz)


    New to the forums! Ive been able to find all needed just by searching online and especially able to make out and be successful understanding SacredPath’s explanations to the many requests. However, I have not found anything that tells me how to add back the footer…css code…with what I want, i.e. style, color, text after getting rid of the #colophon id. After two days of frustration I finally found the right code to remove the #colophon id (Thanks Sacredpath) Now I need to know the right css code or selector to add my own custom footer throughout site. Nothing works from the Inspect Element…ie .site footer, #footer,etc.
    Any help much appreciated. Site vizionsus.com

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi there – your site doesn’t seem to be accessible at the moment.

    If you want to add your own footer informtation, then don’t remove the colophon div entirely. Please see my reply here:

    https://www.ads-software.com/support/topic/harmonic-template-footer?replies=14#post-7589832

    Be sure to use a child theme so your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    https://codex.www.ads-software.com/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
    https://vimeo.com/39023468

    Keeping your theme up-to-date is strongly recommended to ensure you get bug fixes, security updates, and updates to keep the theme compatible with WordPress core.

    You can then modify the look and feel by adding this to your child theme’s CSS, tweaking the values as you like:

    #footer-nav-wrapper .site-info, #footer-nav-wrapper .site-info a {
      color: #bb00bb;
      font-size: 14px;
    }
    Thread Starter izzyiz

    (@izzyiz)

    Kathryn

    Thank you for the information. I attempted all that you outlined. Re-instated colophon code. Created a child theme, changed the HTML text within the four “footer” files after adding them to the child theme and tried the css coding. Nothing changed… You should be able to access the site now at vizionsus.com. Maintenance has been deactivated.

    Please also take a look at the bio page, I cannot get a Header/Title into the space above the horizontal line using selectors from InspectE.

    Thanks
    IZ

    Moderator Kathryn Presner

    (@zoonini)

    Could you zip a copy of your footer.php file, upload it somewhere, and provide a linkso I can have a look?

    Please also take a look at the bio page, I cannot get a Header/Title into the space above the horizontal line using selectors from InspectE.

    Using a browser inspector, I can see that this CSS is hiding the page title:

    .page .entry-title {
        display: none;
    }

    Deactivating that line in the inspector causes the title to reappear: https://cloudup.com/cZC9BeWNgbQ

    This line is coming from the original theme’s stylesheet, which shouldn’t be modified. I’d suggest you restore the theme’s original stylesheet to make sure you’re working with an unchanged copy. Any changes should go only in the child theme.

    Thread Starter izzyiz

    (@izzyiz)

    Kathryn,

    Link is below. Two files are included in the zip. The footer.php is the theme; the footer 2.php is the child theme.

    https://www.dropbox.com/s/we8omolbwe8fdtw/Archive.zip?dl=0

    Something else has popped up in regard to the footer can’t get rid of, however, its on a category page – here is the error: parse error syntax error unexpected…
    Link to page to take a look…https://vizionsus.com/category/news/

    Thank you!
    IZ

    Thread Starter izzyiz

    (@izzyiz)

    Kathryn,

    Are you there? Is there any help?

    Moderator Kathryn Presner

    (@zoonini)

    Hi there – sorry for the delay. Between WordCamp Europe and various statutory holidays we have a little backlog of support queries to handle. Thanks for your patience.

    I’ll check out your child theme now and keep you posted.

    Moderator Kathryn Presner

    (@zoonini)

    The footer.php is the theme; the footer 2.php is the child theme.

    Although you say that footer.php is the original file from Harmonic, it looks like there were some changes to footer.php. For example, there is a space in the function name here, which isn’t right — it should be an underscore, not a space.

    <?php do_action( 'harmonic credits' ); ?>

    There’s also a curly quote here before the word harmonic which could also break things:

    Proudly powered by %s', ‘harmonic'

    So as a first step, I suggest restoring an original copy of footer.php in your parent theme to make sure your parent theme is healthy. If you wanted to be safe, you could replace the entire parent theme folder to make sure it’s restored properly.

    Now let’s look at your child theme’s footer file (footer 2.php).

    Again, there can’t be any spaces in a function name, like you have here:

    <?php do_action( 'vizions credits' ); ?>

    Did you actually create a new function for your own credits and add it to functions.php? If so, it should have an undercore between the words, and not a space. This step also isn’t really necessary; you could simply add your credit text directly to the file, without a function.

    For now, you could try just removing or commenting that function line from your child theme’s footer file.

    When I did that on my test site with your file, I viewed the blog page and saw this in the footer:

    Blog Harmonic Child user 1 0 0 by Anonymous tagline

    And I don’t see any errors on category pages, either.

    Keep in mind that once you get your child’s footer file working, you’ll need to repeat the process in Harmonic’s other footer files, as I mentioned here:

    https://www.ads-software.com/support/topic/harmonic-template-footer?replies=14#post-7589832

    Let me know how it goes.

    Thread Starter izzyiz

    (@izzyiz)

    Thank You Kathryn!!! All done and working.

    Three new questions…. started new threads but here they are…

    On home page in the News Section how can I get some of the post to show up along with title & date? Ive changed it to Masonry for 4 columns (4 posts) but none of the post content is showing just title and date.

    On home page in Front page section – Have not been able to get a Jquery scroll to work in that area. Even tried a plugin called jscrollpane.

    JetPack will not activate for Portfolio section of home page. Sent numerous messages to WP.com called host, GoDaddy, several times, nothing from either to solve the problem. XMLRPC file is accessible in my security but error 404 is continual- site_inaccessible. Help!

    @izzyiz: I’ve answered each of your questions on the separate threads you’ve started on this forum. ?? I’ll mark this thread as resolved for now but please do reply to those threads with extra questions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Code to add custom footer after removing…’ is closed to new replies.