How to add <span> tags inside a Plone <h1> element

I want to change the standard element of the top of the page so that I can style it.

<h1 class="documentFirstHeading">My Heading</h1>

is how Plone places this element on every page. I want to add a so that the line reads:

<h1 class="documentFirstHeading"><span>My Heading</span></h1>

Obviously, this code is generated by a macro, but I have no idea how to change the macro to add span tags. Can someone point me to the appropriate Plone file for change? This creates a common CSS image for the replacement technique and other Plone sites often use it, because I see where I need them on other Plone sites.

TIA for your experience!

+3
source share
4 answers

( ), , . , Plone 4.0 . :

  • * kss_generic_macro.pt *, * Products.CMFPlone//CMFPlone/skins/plone_kss * * skins/your_templates_folder *. " ".
  • 20 ( Plone), :

h1, tal: tal: content.

Plone, . h1 - .

! , , . .

+2

100% ( : -D), , , , .

Plone 3.x /portal _skins/plone_content/document_view, , ,

    <h1 class="documentFirstHeading"> 
        <metal:field use-macro="python:here.widget('title', mode='view')">
        Title
        </metal:field>
    </h1>

    <h1 class="documentFirstHeading"> 
        <span>
        <metal:field use-macro="python:here.widget('title', mode='view')">
        Title
        </metal:field>
        </span>
    </h1>

Plone 4 4.1 portal_skins/plone_kss/kss_generic_macros. :

      <span metal:define-slot="inside" 
            tal:replace="context/Title">title</span>

"" "".

+1

spliter, . , , . , , " ", , , alink .

, , , :

span : none, , h1 .

, h1 , h1's.

? - , h1 h1. h1 .

, , Plone, , , , .

0

, , , , , '/portal_skins/plone_kss/kss_generic_macros/', , generic_title_view.

, , main_template.pt :

<metal:title define-slot="content-title">                              
    <metal:comment tal:content="nothing">
        If you write a custom title always use 
        <h1 class="documentFirstHeading"></h1> for it
    </metal:comment>
    <h1 metal:use-macro="context/kss_generic_macros/macros/generic_title_view">              
       Generic KSS Title. Is rendered with class="documentFirstHeading".                    
    </h1>                                                                                    
</metal:title>

, kss, , , .

-1

All Articles