• Resolved grafik_nina

    (@grafik_nina)


    Hey there, I am really happy with this plugin! but when you click to open the post (content-single.php) the secondary title dissapears – (yes I have set “autoshow “on”)
    to solve that I inserted the code manually:

    <?php
    $hestia_header_layout = get_theme_mod( ‘hestia_header_layout’, ‘default’ ); echo the_secondary_title($post_id, $before, $after); ….

    BUT now I am unable to style secondary title..
    please help! either tell me how to add styling to my solutions OR make it work to display the subheading by default..

    best,
    nina

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi @grafik_nina,

    What about wrapping HTML and CSS stuff around the PHP function? Something like

    <?php
    ?> // stop PHP (if open before)
    <div class="secondary-title-container">
       <?php echo get_secondary_title(); ?>
    </div>
    <?php
    // continue PHP

    This way, you could easily customise it with CSS by the class/ID names.

    • This reply was modified 6 years, 12 months ago by thaikolja.
    Thread Starter grafik_nina

    (@grafik_nina)

    yess that did the trick, I am superhappy now – thanks a mill for your help – looks like I just terrible with php XD

    thank you again!
    best, nina

    Plugin Author thaikolja

    (@thaikolja)

    Haha no problem, that’s what the support forum is for. Don’t forget, you can always rate the plugin and my support on the “Reviews” page ??

    If there’s anything else about Secondary Title I can help you with, just ask.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Secondary Title not showing on Post page’ is closed to new replies.