Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dia Mahmoud 25 posts 95 karma points
    Jul 14, 2017 @ 09:39
    Dia Mahmoud
    0

    Change the section color from orange to [email protected]("section1TitleBig")

    Hi Can anyone please help me with chaning the "Accofluor text color" to black. enter image description here

    @inherits UmbracoTemplatePage @{ Layout = "umbLayout.cshtml"; } @Umbraco.RenderMacro("HomepageSlider")

    @{ if (CurrentPage.HasValue("section1LinkPicker")) { var competenciesPage = Umbraco.Content(CurrentPage.section1LinkPicker); @

    @Umbraco.Field("section1TitleSmall")

    @

    @Umbraco.Field("section1TitleBig")

    @Umbraco.Field("section1Text") @if (competenciesPage.HasValue("post")){

    @umbraco.library.TruncateString(umbraco.library.StripHtml(competenciesPage.GetPropertyValue("post").ToString()), 200, "..." )

    }
    @ @Umbraco.Field("#ReadMoreBtn")
    } }

            <div class="decor decor_equal_js decor_grey2 mobile-show">
                <svg class="shape" height="100%" preserveaspectratio="none" version="1.1" viewbox="0 0 100 100" width="100%" xmlns="http://www.w3.org/2000/svg">
                    <path d="M43 0 L0 100 L100 100 L100 0 Z" stroke-width="0"></path>
                </svg>
            </div>
        </div>
    
  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 14, 2017 @ 10:28
    Alex Skrypnyk
    0

    Hi Dia

    You need something like that:

       <span style="color: black;">@Umbraco.Field("section1TitleSmall")</span>
    
       <span style="color: black;">@Umbraco.Field("section1TitleBig")</span>
    

    I don't know what exactly is your header?

    Thanks,

    Alex

  • Dia Mahmoud 25 posts 95 karma points
    Jul 14, 2017 @ 10:54
    Dia Mahmoud
    0

    Hi Alex

    I can see that I only have this:

    @Umbraco.Field("section1TitleBig")

    Do yo know what I have to do here?

  • Dia Mahmoud 25 posts 95 karma points
    Jul 14, 2017 @ 10:58
    Dia Mahmoud
    0
     if (CurrentPage.HasValue("section1LinkPicker"))
                {
                    var competenciesPage = Umbraco.Content(CurrentPage.section1LinkPicker);
                    <a href="@competenciesPage.Url">
                        @*<h3>@Umbraco.Field("section1TitleSmall")</h3>*@
                        <h2 class="content-title">@Umbraco.Field("section1TitleBig")</h2>
                        @Umbraco.Field("section1Text")
                        @*if (competenciesPage.HasValue("post")){
                                <p>@umbraco.library.TruncateString(umbraco.library.StripHtml(competenciesPage.GetPropertyValue("post").ToString()), 200, "..." )</p>
                            }*@
                        <span class="more-btn more-btn__Black">@Umbraco.Field("#ReadMoreBtn") <i class="fa fa-chevron-right"></i></span>
                    </a>
    
Please Sign in or register to post replies

Write your reply to:

Draft