More in this section
Forums / Designing & Styling / ContentPlaceholder not appearing on own template applying theme

ContentPlaceholder not appearing on own template applying theme

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Stéphane
    Stéphane avatar
    6 posts
    26 Jun 2012
    30 Oct 2013
    Link to this post

    I am trying to create our own template for sitefinity (.master) and our own theme (.css) and i have some troubles with some contentplaceholder.
    I have put these files in App_Theme and App_Master directories in Websitetemplates in App_Data.
    I have created a new theme with my css file and a new template with my master file in sitefinity backend.
    When I create my template, my all 3 content placeholder are visible but when i apply my theme 1 disappears. I try to preview it and inspect the HTML code. In fact the div where the contentplaceholder should be is 0px witdh and height.
    Is it why the contentplaceholder is not appearing?
    If it is yes, I don't understand why i can see the others as my others div are also 0px height.

    Do you have any advice to build our .master and .css file when the desired template is not based on a simple table construction (even with div) ?

    Thank you for your help.
  2. Jonathan
    Jonathan avatar
    119 posts
    19 Dec 2012
    31 Oct 2013 in reply to Stéphane
    Link to this post
    Sorry this was a response for another post, my apologies.
  3. Stéphane
    Stéphane avatar
    6 posts
    26 Jun 2012
    31 Oct 2013 in reply to Jonathan
    Link to this post
    Sorry, but...

    What is the addmarker function?
    What about map?
    Why is undefined?
  4. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    26 Mar 2015
    04 Nov 2013
    Link to this post
    Hello Stephane,

     As a whole ContentPlaceHolders are not visible when placed in a 0px height div. I cannot conclucde why only one of them disappears (maybe you assigned the particular class only to its ID). Additionally you will do good to share the code of your template and css as this will provide us with more resources for us to work with and in turn a better explanation. 

    You can also review the information concerning page themes in our Documentation.

    Ivan D. Dimitrov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered