riceballchick
asked 8 years ago

Hello,

My site is finally up using your awesome DW Fixel theme. Would really appreciate if you can help with the following 2 issues –

  1. I disabled the comment function for posts so I went into single.php (Appearance->Editor) and commented out the "Comment this post" icon like below :

<!–

  • <a href="#comments" class="comment" title="”>
  • –>

    On wp-admin, it showed that the "Comment this post" icon is gone from the post page but it is still there if you go to the site directly – http://aboutlux.com/2015/09/25/egress-emergency-lighting/

    How do I remove it?

    1. Can you let me know which template to edit so I can use a full page background picture instead of a solid color background?

    Thank you very much for the help!

    Appreciated,
    Yvonne

    2 Answers
    DominicStaff
    answered 8 years ago

    Hi,
    You can open the single.php file to remove the comment icon. Also, if you want to change background color for the single page, you can use the following code:
    .page-template-template-social-wall { background: #fff; }
    Or
    /Change background image/

    .page-template-template-social-wall {
        background: url('File URL');
    }

    Hope this helps !

    riceballchick
    replied 8 years ago

    Thank you Dominic!

    For my question #1, I QAed more and realized that removing the comment icon from single.php only works when I refresh the page or directly go to the post using the URL (please refer to the post link I provided in my original post above). If you go to the homepage first (in this case, go to aboutlux.com), click on a post, you will see that the comment icon is there. Refresh / reload the page, the comment icon is gone.

    Weird, eh? Is there another .php file that’s used when a post is initially loaded from homepage?

    riceballchick
    replied 8 years ago

    Sorry for the double post. Clicked twice by accident.
    For my question #2, actually I’d like to change the background of the site (not a single page) from a solid color (in this case, black) to an image background. Which .php file should I add what code?

    Thanks a lot again!

    dominic Staff
    replied 8 years ago

    About the comment icon, you can remove in 2 following file:

    • single.php file in the line 17
    • content-modal.php file line 7

    Question #2: At the moment, just used the Css code to change the background color or image. If you want to change the background color for all page, you can use the following code to the style.css file:
    body { background: #...;}

    Or
    body { background: url('File URL'); }

    Also, you can open the \wp-content\themes\dw-fixel\assets\css\dw-fixel.php file, find the line 3256 then change the background.
    Hope this helps !

    riceballchick
    answered 8 years ago

    Thanks a lot Dominic! Yeah it works!

    I’m a bit puzzled why the location of the "Print" icon, when a post is initially loaded from homepage, is at the bottom of the page but after page refresh/reload, the "Print" incon shows up at the correct location. I compared the relevant code section in single.php and content-modal.php and didn’t see why. Can you kindly let me know what I’m missing?

    By the way, I have a question unrelated to this topic (I can post another topic if you want) –
    I noticed that only IE browser displays my site logo before the URL in the URL bar. Firefox and Chrome do not. Is there something I can do to fix it?

    Thanks a lot again!

    Appreciated,
    Y

    dominic Staff
    replied 8 years ago

    I have helped you resolve the issue about the Print icon, you can check your site now.
    About the IE issue. Which version are you using ? At the moment, our theme Compatible with the following browsers: IE 9+; Firefox, Chrome, Safari, Opera.
    Regards,

    riceballchick
    replied 8 years ago

    Thanks a lot for fixing the Print icon location!

    Actually no IES issue. All issues mentioned on this thread has been resolved! Thank you very much again!

    Powered by DW Question & Answer Pro