Unable to apply custom theme with background Image through code

Hi,
I am creating custom SharePoint 2013 theme and applying it through code on site by referring MSDN Article : "http://msdn.microsoft.com/en-us/library/office/jj927175(v=office.15).aspx".
However when I try to add background image in custom theme and apply that theme to site then sites UI breaks.
Details: I have two features, in feature-1: I am Deploying *.spfont, *.spcolor and background image. Then I am adding a new entry in "composed looks" list for my custom theme. in feature 2- I am applying the custom theme to site by using following
code
SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile, backgroundURI);theme.ApplyTo(Web, true);
Both feature activates without any errors, new entry also gets added in 'Composed Looks' list with all correct URLs, current item of composed looks list also change to custom theme but entire UI of site breaks If I remove background Image code from custom theme then everything works fine. Following code works fine
SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile);
theme.ApplyTo(Web, true);
If I apply same background Image manually(not through code) then also everything works as expected.Any help will be really appreciated.

Hi,
Thanks for your sharing, it will be helpful to those who stuck with the similar issue.
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • Custom theme with Fiori launchpad

    Hi
    I have created a custom theme using the theme designer  as per detailed in Colorful Fiori - Part 3 - Sea Blue
    I can see some changes taking effect in the preview but not all. For e.g. the tile title color, icon color did not change.
    When I use the custom theme with  the fiori launchpad url, I do not see any of the tiles. Only button I see is the logout button.
    I checked in debug, it did show me few 404 errors.  wondering why the custom theme works for my ui5 application but not with launchpad url.
    Appreciate your help, in identifying what I might be doing wrong.
    Thanks
    Kalpana
    Tags edited by: Michael Appleby

    Hi Masa,
    Thanks for replying !
    We found that our exact issue was resolved in Version 1.1.7 of UI Theme designer (OSS note 1941092) .
    So we upgraded our SAP_UI component to SP08 and now we are on version 1.2.2 of UI theme.
    I am now able to see the tiles on my Fiori launchpad and the logo I defined in the custom theme. But the custom theme I applied did not get applied to the tiles and the background.
    I still see the whole page (Except our company logo) with sap standard sap_bluecrystal theme.
    I did the Inspect element, and see that it is still using the standard CSS.  Cleared the browser histroy just to make sure that it is not picking the old theme from cache  - but with no help.
    If I go back to the theme designer and open the custom theme, I can see the csutom  theme changes in the preview. 
    Any help is appreciated.
    Thanks
    Kalpana

  • FF36: Sites with background image flickers/flashes when going back to tab after 2 minutes.

    Figure I'll mention this here as well.
    When viewing websites with background images, such as twitter.com or my own website at www.markheadrick.com and I change to another tab for 2 minutes (this amount of time is repeatable anyway) I get a flicker of a black background before the page is fully drawn. If I have multiple tabs with the same background image, only the first tab will show the flicker. It's like it's loosing the image in memory or something. It has done this with Firefox in Safe Mode and with a new, clean profile. It has also done this with Hardware Acceleration off.
    Windows 7 Pro 64bit w/ NVidia 550ti and 314.22 drivers. Newer drivers are more problematic which is why I have stayed with these.
    Again, only pages with background images seem to show this flicker. Did not happen with Firefox 35 on my system.
    I created a bug for it here: https://bugzilla.mozilla.org/show_bug.cgi?id=1137082
    Thanks,
    Mark H

    I tried, but could not see and problem.
    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Looking to create fully editable PDF files with background images

    Hello and thank you, I create menu's and flyers for a group of restaurants. I need to make text editable PDF menus with background images. I believe Livecycle is able to do this, but would really like to hear it from someone who knows for sure. Again thank you.
    Cheers,
    Charlie

    Yes it can. Download a free trial and try it out.

  • Create Xcursor Theme with SVG Images?

    Is it possible to create an xcursor theme with SVG images instead of PNG images?
    An unproductive Google search is making me guess that the answer is "No." Also, I've downloaded a few from the AUR, and none of them use SVG images (unless they're being used as examples). Does anyone know if this is possible?

    view > edit slide master
    delete all the slide masters except the master you want to use
    File > Save Theme and add to theme chooser
    select the default theme when opening Keynote:    Keynote preferences > General > For new documents; select use theme > change theme

  • SG 7.1x158 crashes when applying custom look with Premier Dynamic Link

    The sequence opens just fine, and I'm able to create a grade for a selected clip.  However, when I save the custom look and then try to apply it to any other clip, SG crashes.  Odd thing is that I've tried a couple of the example looks and they don't crash.  Crash only occrus when I choose any of the custom looks I've saved. 
    Only workaround I see at this point is to apply the look using Lumetri in Premier, which seems to work just fine.
    Anyone else run into this problem?
    --Ken

    Hi,
    This is a known issue when applying custom looks with masks. We are working in a solution, please keep tuned.
    Thanks,
    Fran

  • Apple needs more information to complete your iMessage registration. Please call AppleCare in your country (listed below) and provide them with the following validation code:

    When I try to open imessage on my Macbook Pro I get the message "Apple needs more information to complete your iMessage registration. Please call AppleCare in your country (listed below) and provide them with the following validation code:"  Then it makes me call a number for AppleCare whish then makes me buy a $19 incident care. 
    I message has worked on this machine and works on my macbook air.  What is happening?
    Charles

    Hi,
    Apple Care Level one responders are very Script Led.
    This means they try to fit what you are saying into a Software or Hardware issue and into a Apple Care Period or  not.
    If you are having problems convincing them it is an Account/Apple ID problem (even though it only effects the Mac's use of it in iMessages) ask to speak to a Level 2 person who should be more knowledgeable because fixing and Id issue is free and not subject to Apple Care.
    9:00 pm      Monday; December 15, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Apple needs more information to complete your iMessage registration. Please call AppleCare in your country (listed below) and provide them with the following validation code:  3384-1797-2190

    I tried to use iMessage on my MacBook Air but i get the following message
    Apple needs more information to complete your iMessage registration. Please call AppleCare in your country (listed below) and provide them with the following validation code:
    3384-1797-2190

    Hi,
    Apple Care Level one responders are very Script Led.
    This means they try to fit what you are saying into a Software or Hardware issue and into a Apple Care Period or  not.
    If you are having problems convincing them it is an Account/Apple ID problem (even though it only effects the Mac's use of it in iMessages) ask to speak to a Level 2 person who should be more knowledgeable because fixing and Id issue is free and not subject to Apple Care.
    9:00 pm      Monday; December 15, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I just created an AIP version of Adobe 11.0.10, applied our settings with the .mst through Adobe Customization Wizard.Online Services and Features Issues

    I just created an AIP version of Adobe 11.0.10, applied our settings with the .mst through Adobe Customization Wizard. But something is blocking it from opening the software, it just flickers the windows explorer, if I uncheck all the settings for the Online Services and Features it lets me open it but i can't skip the registration screen. Has something changed with this version of 11.0.10?

    Having the same problem here. Even if not creating an AIP, and instead doing a standard install of AcroPro.msi and patching with 11.0.10's msp, it'll result in a registration loop that can't be skipped.
    Applying an Adobe ID allows for getting through the screen, but obviously, in an enterprise environment, that's not ideal.
    This issue was something that I experienced with 11.0.07, and it went away with 11.0.08 and 11.0.09, but seems to have returned with 11.0.10.
    Previously, I was able to get around the issue by clearing out some files from the Common Files\Adobe directory, particularly Adobe PCD and SLCache, as well as including the Adobe regids stored in ProgramData,but that fix no longer works with this latest version.
    If REGISTRATION_SUPPRESS is set to YES, the result is Acrobat closing and opening in a loop, since it can't get through the registration screen.
    I'm currently investigating for a registry key that might possibly applied to circumvent this issue, but I haven't found one yet.
    For Adobe Acrobat 8, it used to be stored in the following two places, per Prompted to register repeatedly | Acrobat 8 | Windows
         32-bit Windows: HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\8.0\AdobeViewer
         64-bit Windows: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Adobe\Adobe Acrobat\8.0\AdobeViewer
    However, the registry structure seems to have changed since then.

  • Coloring an image through code

    Hey guys,
    With a basic knowledge of the iphone SDK by now I've been playing around with some code and as expected stumbled upon "a pretty hard to do" idea.
    I was wondering how to color the contents of an image through code. Basically something like the "Fill" photoshop effect. Meaning: a UIImage containing a transparent png. The image is a drawing of a star, the outside is transparent, the lines are black and the inner color is purple.
    Through code I'd love to find out how to alter the purple color for example with a red one or any other.
    Any ideas / help would be appreciated...

    Search on MacUpdate using 'home decorate' as a search term.
    Regards
    TD

  • Assign theme to the user through code

    Hi,
       I need to create the personalize component through which we can assign theme to the user(changing theme). can anyone give solution for assigning theme to the user through code.
    Regards,
    Shanthakumar.

    Hi Shanthakumar,
    Here's a document for creating portal desktop and display rule
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e549a890-0201-0010-3f8b-d3b852457ebd
    You can create a display rule for a portal desktop depending upon the group. Through code you can add the required users to this group.
    Hope this helps resolve your issue.
    Regards,
    Seema Rane.

  • Creating business cards in Pages with background image

    I am trying to use the Pages business card template and background image function of pages to create a business card that has an image on every business card on the sheet. I can't seem to find out how to do that. Can anyone help?
    Thanks,
    Jim

    Here is the basic method of having white text on a colored background: Insert a shape. While selected go to the Graphic Inspector and select a Fill color. Re-proportion the shape as needed. Insert a text box (or boxes) and type your text. Drag it (them) over the shape and change the color of the text to white (or any other color you desire). Select all and group. Duplicate as needed. Apply this procedure to your business cards or anywhere else.
    Another method for applying a colored background to a text box: select the text box and Fill it from the Graphics Inspector and adjust the Inset Margin in the Text Inspector.
    Wal

  • Apply custom themes to WebDynpro application in Portal

    Hi,
    We have just upgraded the E-Recruitment to EHP4. We have two instances of ECC in which one acts as HR instance and the other one for E-Recruitmet. We have created custom themes for portal and need to apply the same for the WebDynpro ABAP applications for E-REcruitment. I have downloaded the theme and from portal and uploaded the same in MIME folder using SE80 transaction. I have also added the parameter sap-cssurl=/sap/public/themes/<my custom theme folder name>.
    Also tried giving the url in application parameter as
    SAP-EP-THEMEROOT=http://<hostname>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/<custom theme>
    Is there any other way to apply themes for WD ABAP applications. I dont want to customize the standard applications and just want to apply the themes.
    Any suggession on this is highly appreciated.
    Kind Regards,
    Vivek.

    you can try these links for adding Themes to a Web Dynpro Application ... You can create your own theme with your company logo ... Optionally there are a few sample themes available ..
    1) http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9?overridelayout=true&quicklink=index
    You can check this link below in which they have discussed about adding themes to the WD application ..
    2)Re: Want Colorful WebDynpro Theme to download
    For portal themes you have already applied it but still
    http://help.sap.com/saphelp_ep60sp2/helpdata/en/1a/d7c1617dd29e4d85064b467636fada/frameset.htm
    this link might help .

  • Working with Background images

    HI. I have a project which contains a few slides with the same background image...an image that was caught with Snagit and then merged onto the slide. I anticipate needing to replace this image with an updated one in the near future. Is there a quick and easy way of replacing that image (which contains a number of captions, highlight boxes, etc) without having to recreate the entire slide from scratch?

    Hello again,
    Please save the image (p.e. as a PNG) on your PC, do not copy it to the Clipboard. The workaround I described would work, but here is even a shorter way:
    Open the Slide Properties (righ mouse click menu)
    Use the button 'Change background image' and point to the image saved.
    The background image will be replaced, you will see both of them in the Library in this case
    But there will be no problem to delete the old image (right mouse click on the image in the Library)
    Try it,
    Lilybiri

  • Apply Custom theme to Web Dynpro Java CE 7.11

    Hi,
    I want to apply a custom theme created with the theme editor to my WDJ application. The creation of my custom theme seems to be no problem.
    But I did not find any documentation how to apply this theme to my WDJ app.
    How to deploy this theme (zip-File) to my AS Java (CE 7.11) ?
    How to set this theme as used theme for my WDJ app only?
    How to set this theme to be used by my app running stand-alone and running in portal?
    Thanks ahead,
    Bernd

    Bernd,
    You can deploy your theme by going to
    System Administration->Portal Display->Theme Archive, on the screen under the Import Theme section, browse the theme and import.
    In order to apply the theme to your WD application, you can get the info. here:
    https://cw.sdn.sap.com/cw/docs/DOC-100896
    also note that, by default WD application will take the portal theme unless you configure to use a specific theme as described in the above link.
    For applying the portal themes, you have to create a framework page and a new desktop.Add that framework page and the theme to the desktop and then create a desktop rule which gives the look and feel of that desktop(theme and the framework page) who satisfy the condition in the rule.
    Regards,
    Ajay

Maybe you are looking for