2

I downloaded bootstrap framework using this link available on codeplex.

I have created empty sharepoint project in visual studio 2013. Then manually added bootstrap related files in Layout folder. See my project files in visual studio below

enter image description here

Now i went to my page and selected site settings. Then i selected Look and feel >Master page. But i cannot see bootstrap.master. How can i see that in site settings. I am using sharepoint 2013

Update1

My element.xml is as below

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="MasterPage" List="116" Url="_catalogs/masterpage">
 <File Path="MasterPage\acme.master" Url="acme.master" />
 <File Path="MasterPage\bootstrap3.master" Url="bootstrap3.master" />
</Module>

My module1's element.xml is as below

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Module Name="Module1">
  <File Path="Module1\Mycustom.css" Url="Mycustom.css" />
</Module>
</Elements>
  • Did you check in the master file and make sure that a major version is available? – wjervis Mar 30 '15 at 12:07
  • 1
    is the elements file correct? – Eric Alexander Mar 30 '15 at 12:10
  • @PirateEric updated the question – Happy Mar 30 '15 at 13:50
0

Go to Master Page Gallery, then Publish and Approve the master page.

Try changing XML file as follows

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="MasterPage" List="116" Url="_catalogs/masterpage">
    <File Path="MasterPage\acme.master" Url="acme.master" Type="GhostableInLibrary" Level="Published" ReplaceContent="true"/>
    <File Path="MasterPage\bootstrap3.master" Url="bootstrap3.master" Type="GhostableInLibrary" Level="Published" ReplaceContent="true"/>
    </Module>
</Elements>
  • when i go to Master page gallery i cannot find bootstrap3 but can find acme.master – Happy Mar 30 '15 at 12:09
  • Element.xml has this <File Path="MasterPage\bootstrap3.master" Url="bootstrap3.master" /> – Happy Mar 30 '15 at 12:11
  • Updated the question – Happy Mar 30 '15 at 13:50
  • please help me if you have any ideas – Happy Mar 30 '15 at 17:55
  • Its working and i selected bootstrap3.master in master page but dont see any predefined template on site. I checked in bootstrap3.master file and there is something like this <link href="/_catalogs/masterpage/bootstrap3/css/bootstrap.css" rel="stylesheet" /> Is this the reason that its not finding this css and not applying any theme. where exactly i should put bootstrap.css. – Happy Mar 30 '15 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.