Starbox interacting with custom theme
-
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 } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Starbox interacting with custom theme’ is closed to new replies.