Open quangtt-rks opened 5 years ago
Hi anh Quang Teo!
I followed your guide to remove the Disqus short name like this:
var disqus_shortname = '';
But it is still showing your id name. How may I solve this?
Many thanks!
Hi @hiensarahly ! Are you trying to modify that on your local machine or your production site?
I’m on my local machine right now.
Did you try restarting Ghost service, on your local machine?
I have tried restarting Ghost & installing a whole new one. Here is a screenshot on my end:
In asset/js/index.js, I also removed the shortname:
@hiensarahly Sorry, I didn't mentioned it yet on Wiki, but editing index.js is not enough.
If you already installed Nodejs, run npm install
at root of starter project.
Then run ./node_modules/gulp
to minify and combine all CSS files into one, also JS files.
After that, your changes will takes effect.
Thanks @quangtt ! I got npm install installed in the root project.
When I run ./node_modules/gulp, I get the message:
Am i missing something?
Hey turns out you are using Windows. I am not sure but try this node_modules/gulp
?
Or you can try install gulp as global npm install gulp -g
,
then verify if gulp is installed successfully gulp -v
,
then run gulp
at starter directory.
Haha yes, I'm on Windows. Okay I will try it now.
In the command line: No gulpfile found.
The comment interface is still the same.
There is gulpfile.js
at root directory of Starter, are you running gulp at the same directory?
Thanks @quangtt ! Everything went well on the back end.
Disqus is not showing on the front end. I have waited more than 10 minutes.
Should i add anything else?
In short, you should provide a username for Disqus plugin to work, if not, comment sections should disappeared.
Okay, I got it! Thank you @quangtt !
Remove some personal stuffs such as:
Then use Code Injection to integrates them if you want.