• Hi guys,

    I’m a noob but really want to use your plugin on a custom theme and it interacts with some code that I need, and cannot really delete or change much – I copy-pasted it below. Can you guys help me with this?

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    <?php
    
    $my_notification = get_post(get_id_by_slug(“notification”));
    
    if ($my_notification_content = apply_filters(“the_content”, $my_notification->post_content)) {
    
    ?>
    <div
    class=”header__notification<?php if ($my_notification_class = get_field(“notification_class”, $my_notification->ID)) {
    echo ” ” . $my_notification_class;
    } ?>”<?php if ($my_notification_background = get_field(“notification_background”, $my_notification->ID)) {
    echo ‘ style=”background-image: url(‘ . get_image_by_id($my_notification_background, “original”) . ‘);”‘;
    } ?>>
    <div class=”container”>
    <div class=”header__notification__content”>
    <?php echo $my_notification_content; ?>
    </div>
    <div class=”header__notification__close”><a
    href=”#”><?php get_template_part(“part/svg-close”); ?></div>
    </div>
    </div>
    <?php } ?>
    • This topic was modified 9 years, 6 months ago by bdbrown.
    • This topic was modified 9 years, 6 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • Thread Starter covrigel

    (@covrigel)

    oops! truly sorry about that!

    So the change I see here is `<div class=”header__notification__close”><a
    href=”#”><?php get_template_part(“part/svg-close”); ?></div>` which now doesn’t have the closing a tag? what am I missing? :-S

Viewing 1 replies (of 1 total)

The topic ‘Starbox interacting with custom theme’ is closed to new replies.