There are few things I am trying to accomplish here, I want to add a phone number to the "create my account" form of my website, along with that I want to add a style sheet to my html that links to that phone number, (kind of creates a user ID, with phone number), would this be possible?
I am using Magento 2 via AWS lightsail.
Thank you for your help.
- 
 hey, what do you mean by adding a style sheet to your html, do you want to reference a stylesheet in the head of the document? If so, do you have a theme?John– John2018年02月13日 10:58:37 +00:00Commented Feb 13, 2018 at 10:58
- 
 1Hey John, Thank yourav narayan– rav narayan2018年02月14日 19:48:34 +00:00Commented Feb 14, 2018 at 19:48
- 
 Yes, i do have a theme... but i need to attach it to my html under content-page (magento dashboard). I though if i can upload the files to AWS cloud 9 it should "link" to my html code but it didn't... is there another way around with with/without using cloud 9? maybe through magento dash?rav narayan– rav narayan2018年02月16日 05:15:15 +00:00Commented Feb 16, 2018 at 5:15
- 
 do you know the URL you are linking to, it's definitely possible if you know the URL you're linking to, Magento actually comes with a feature where you can insert scripts & stylesheets before the head closes in your htmlJohn– John2018年02月16日 07:42:06 +00:00Commented Feb 16, 2018 at 7:42
- 
 1Hey John, Thank you for getting back to me.. Also thank you for all your help this far. I will follow the instructions that you gave me. Regards,rav narayan– rav narayan2018年03月06日 06:10:56 +00:00Commented Mar 6, 2018 at 6:10
1 Answer 1
From my conversation in the comments with you You're going to need to go to paste your CSS inside web/css and call it something like, lets say function.css. Save this inside that folder, next go to Vendor/Theme and if there's a Magento_Theme folder there go inside layout and click on default_head_blocks.xml. If not, you will need to create this file structure. (vendor/theme/magento_theme/layout/default_head_blocks.xml). Inside here you're going to want to insert <link rel="stylesheet" type="text/css" href="path/to/file/theme.css"> line just after 
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
 <head>
if you're making this file you then want to write
 </head>
</page>
after it. Save, flush cache and reload the page and the file should be referenced in your head. I hope I've helped