I noticed by default the Facebook comment system is default for light theme. Is there away to either 1) Change it to dark theme or 2) customize the colors?
I have a black color site and the comment system stands out like an eyesore LOL
Facebook Comment Dark Theme?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Comment Dark Theme?
Hi, then this needs to be customized directly in the code 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
eclipsemedia
- Phoca Member

- Posts: 12
- Joined: 15 Sep 2011, 15:19
Re: Facebook Comment Dark Theme?
For those willing to edit some small code to have a Dark theme, follow these instructions.
Step 1.
Open
components/com_phocagallery/views/category/tmpl/default_comments-fb.php
Line 45
Replace this
With
Note: the additional colorscheme='dark'
Step 2.
Facebook is now dark but the CSS for Phoca Gallery is still light so edit
components/com_phocagallery/assets/phocagallery.css
Line 565
dl.tabs dt
change border-left: 1px solid #ccc; to #000000; (or anything dark)
change border-right: 1px solid #ccc; to #000000; (or anything dark)
change border-top: 1px solid #ccc; to #000000; (or anything dark)
Line 577
dl.tabs dt.open
change background: #ffffff; to #000000; (or anything dark)
chaing color: #000; to #ffffff
Line 585
div.current
change background: #ffffff; to #000000; (or anything dark)
change border: 1px solid #ccc; to #000; (or anything dark)
Step 1.
Open
components/com_phocagallery/views/category/tmpl/default_comments-fb.php
Line 45
Replace this
Code: Select all
<fb:comments href="<?php echo $uri->toString(); ?>" simple="1" <?php echo $cCount;?> width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:comments>Code: Select all
<fb:comments colorscheme='dark' href="<?php echo $uri->toString(); ?>" simple="1" <?php echo $cCount;?> width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:comments>Step 2.
Facebook is now dark but the CSS for Phoca Gallery is still light so edit
components/com_phocagallery/assets/phocagallery.css
Line 565
dl.tabs dt
change border-left: 1px solid #ccc; to #000000; (or anything dark)
change border-right: 1px solid #ccc; to #000000; (or anything dark)
change border-top: 1px solid #ccc; to #000000; (or anything dark)
Line 577
dl.tabs dt.open
change background: #ffffff; to #000000; (or anything dark)
chaing color: #000; to #ffffff
Line 585
div.current
change background: #ffffff; to #000000; (or anything dark)
change border: 1px solid #ccc; to #000; (or anything dark)
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Comment Dark Theme?
Hi, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
kevin08
- Phoca Newbie

- Posts: 1
- Joined: 07 May 2018, 12:16
-
david09
- Phoca Newbie

- Posts: 1
- Joined: 09 May 2018, 15:05
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Comment Dark Theme?
Hi, not sure what you exactly mean, in this forum, there is no support for eclipse project.
If you find Phoca extensions useful, please support the project