Favicon

55 views
Skip to first unread message

Ben Rogers

unread,
Aug 5, 2019, 5:33:15 PM8/5/19
to BBEdit Talk
I am trying to put a favicon on my website. I have to put code in each header for each website page. How do I search out each page and insert the code. I know there is a way using the search menu but I cannot figure out how to set the search so that BBEdit finds each web page to run the search and add the code to the appropriate spot. If someone could help me out with exact steps as to how to accomplish this, I would greatly appreciate it.

Thanks,

Ben

bruce linde

unread,
Aug 5, 2019, 6:02:16 PM8/5/19
to bbe...@googlegroups.com
ben -

some of that is bbedit and some is not.

once you’ve googled your ‘how to add a favicon’ solution and want to put it on every page you would find the appropriate code in your pages and do a multi-file search to replace code with the new stuff.

i re-map command+shift+f to bring up the multi-search file window. i no longer remember if this is stock, but for me command+e puts the selected text in the ‘find’ box and command+option+e puts it in the ‘replace’ box. when i command+shift+f to bring up the multi-search dialog box it’s already pre-selected to search the current project.

for example, you might search for:

  <meta name="robots" content="noindex,follow" />
  
and replace it with:

  <meta name="robots" content="noindex,follow" />

  <!-- Favicon -->
<LINK REL="shortcut icon" HREF="images/favicon.ico" TYPE="image/x-icon" />

… across all files in that project.

the trick is to 1) figure out what code you need/want to add and then 2) find some unique string immediately preceding (or following) where you want to put it and do the global search and replace.

make sense?










--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/e1ebcacb-fcb4-43b0-a2bc-bff15bc0abbb%40googlegroups.com.





bruce linde
5 happiness webmaster (four more than the competition!)
http://www.5happy.com/
http://clockhappy.com/
510.530.1331 office
510.206.9730 mobile

(shift key available upon request)








Ben Rogers

unread,
Aug 5, 2019, 8:20:38 PM8/5/19
to BBEdit Talk
Bruce,

Thank you for the response. You make perfect sense. Now, the issue I have to figure out is how to run a search that reads the html pages in my website folders. When I run a multi-file search, it seems that everything in my website folders is checked but the html pages themselves. Do I have to open each document? Can I run a search that goes through the entire website folder and its subfolders? If so, how? In the Multi-File Search box, there are lots of options and boxes to check. I'm not sure what to do to set up the search. I know I am extremely ignorant on this.

In addition, if I get the search and replace to work on all the html files, how do I save them to the server? Is there an automatic way to save multiple files? Or do I have to save one file at a time? Or do I use an FTP and just save/overwrite all the files from the computer to the web server?

I know, too many questions. Thanks for your help thus far. It is appreciated.

Ben

bruce linde

unread,
Aug 5, 2019, 11:12:38 PM8/5/19
to bbe...@googlegroups.com
you can specify in the press... check the manual for tips on searching and replacing across directories and files...



bruce linde
5 happiness webmaster
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.

Ben Rogers

unread,
Aug 5, 2019, 11:12:47 PM8/5/19
to BBEdit Talk
Never mind. I figured it out. Thank you Bruce.

Ben.

bruce linde

unread,
Aug 5, 2019, 11:53:03 PM8/5/19
to bbe...@googlegroups.com
effing spell check... that was supposed to be ‘prefs’




bruce linde
5 happiness webmaster


Greg Raven

unread,
Aug 6, 2019, 10:16:33 AM8/6/19
to BBEdit Talk
It looks as though you already got your answer, but I wanted to add that IMHO the best icon generator is here:


Not only does it generate every icon you could ever want, it also generates the code you need to put into your <head> section.

Finally, if you are using a hosting service such as Netlify, you can put the favicon code into a "snippet" and have it injected into each web page without having to clutter up your code.



On Monday, August 5, 2019 at 2:33:15 PM UTC-7, Ben Rogers wrote:
Reply all
Reply to author
Forward
0 new messages