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>
3
  • Did you check in the master file and make sure that a major version is available? Commented Mar 30, 2015 at 12:07
  • 1
    is the elements file correct? Commented Mar 30, 2015 at 12:10
  • @PirateEric updated the question Commented Mar 30, 2015 at 13:50

1 Answer 1

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>
11
  • when i go to Master page gallery i cannot find bootstrap3 but can find acme.master Commented Mar 30, 2015 at 12:09
  • Element.xml has this <File Path="MasterPage\bootstrap3.master" Url="bootstrap3.master" /> Commented Mar 30, 2015 at 12:11
  • Updated the question Commented Mar 30, 2015 at 13:50
  • please help me if you have any ideas Commented Mar 30, 2015 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. Commented Mar 30, 2015 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.