Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4467

    Hey,

    i want to have the titel of each portfolio listed on the top of the site (Like the heading of a normal site)…is this possible?

    #46454

    Hey,

    try following – in template_portfolio.php replace:

    global $k_option, $more;

    with:

    global $k_option, $more;
    $page_title = get_the_title();

    and replace:

    <div id="main" class='portfolio'>

    <?php

    with:

    <div id="main" class='portfolio'>
    <h1 class="siteheading">
    <?php
    echo $page_title;
    ?>
    </h1>
    <?php

    #46455

    Thank you!

    Its working..but the formating isn’t right. Its just the name of the portfolio without any css. Is it possible to get a style like a normal page?

    #46456

    Hey,

    I adjusted the code above a bit. Please try it again.

    #46457

    The align of the Siteheading is still not right….its aligned on the left side of the site. Can you fix it?

    #46458

    Please try following code:

    <div id="main" class='portfolio'>
    <h1 class="siteheading" style="float:right;">
    <?php
    echo $page_title;
    ?>
    </h1>
    <?php

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘insert Titel of Portfolio’ is closed to new replies.