I'm using the free website builder Mobirise application. Is it possible to remove all the links to Mobirise from the code? It's really annoying. I don't want to do it manually.
Dani AI
Generated
— short answer: yes, but do it the supported way if you want a clean, legal result. Mobirise’s free builder inserts a “made with / Mobirise” credit and other mentions into exported pages; the official way to remove those mentions from the HTML is to buy the Code Editor extension (or the Mobirise Kit), enable the Remove "Mobirise" from HTML option in App Settings, and republish. Also note the Mobirise Terms explicitly forbid removing or altering copyright/watermark notices except through their provided options, so using the paid path is the compliant approach. (mobirise.com)
Quick official steps (works across the whole project):
- Menu → Extensions → install Code Editor (or Mobirise Kit).
- Menu → Account → App Settings → enable “Remove "Mobirise" from HTML”.
- Publish the site to your own hosting (don’t use the free Mobirise webspace if you want to avoid injected banners). (mobirise.com)
If you absolutely cannot use the paid option and want to avoid manual per-page edits, batch tools will do it — but back up first and test carefully. Two common approaches:
Node + cheerio (safer than regex — parses HTML properly):
/* remove-mobirise.js */
const fs = require('fs'), path = require('path');
const cheerio = require('cheerio');
function clean(file){
const $ = cheerio.load(fs.readFileSync(file,'utf8'));
$('a[href*="mobirise"]').remove();
$('script[src*="mobirise"]').remove();
fs.writeFileSync(file,$.html(),'utf8');
}
function walk(dir){ fs.readdirSync(dir).forEach(f=>{
const p=path.join(dir,f);
if(fs.statSync(p).isDirectory()) walk(p);
else if(p.endsWith('.html')) clean(p);
});}
walk(process.argv[2]||'.'); Run: npm install cheerio then node remove-mobirise.js path/to/exported/site (always test on a copy).
Simple find+sed (quick-and-dirty; may miss complex cases):
# GNU/Linux
find . -name '*.html' -exec sed -i -E 's#<a[^>]*href="[^"]*mobirise[^"]*"[^>]*>[^<]*</a>##ig' {} +
# macOS (BSD sed)
find . -name '*.html' -exec sed -i '' -E 's#<a[^>]*href="[^"]*mobirise[^"]*"[^>]*>[^<]*</a>##ig' {} + A less-invasive visual fix (doesn't remove code):
a[href*="mobirise"]{display:none!important;} Be careful: removing links/scripts can break blocks that rely on Mobirise JS or hosted assets (some users report external calls such as r.mobirise.com depending on theme/version). Review any script/src references and test all interactive features after cleaning. (forums.mobirise.com)
Recommendation: buy the Code Editor/Mobirise Kit and publish to your own host for a clean, supported result. If you use scripts or third-party widgets, keep a tested backup and stage changes before going live. The Terms page is the final word on what you may or may not remove. (mobirise.com)
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.