• Resolved metometo

    (@metometo)


    your plugin write incorrect code on my theme when I activate it
    https://ibb.co/68jZVgh this is screenshot of codes that your plugin put on my homepage and it make my news blocks do not work correctly
    how to sovle that ?
    my website is agri2day.com

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter metometo

    (@metometo)

    and when i deactivate your plugin my theme work correctly and i want to mention you that i bought you pro version for another website and my website but your plugin do same problem it add codes in my websites

    Plugin Author Spacetime

    (@spacetime)

    Hello,

    those are the markers for the “stick to the content positions”. They should be inserted at positions defined by WP hooks. If they cause any issue with your theme you can simply disable them with a short PHP code in the header:

    <?php
    define ('AI_CONTENT_MARKER_NO_LOOP_START', true);
    define ('AI_CONTENT_MARKER_NO_LOOP_END', true);
    define ('AI_CONTENT_MARKER_NO_GET_SIDEBAR', true);
    ?>

    https://adinserter.pro/documentation/sticky-ads#content-markers

    Plugin Author Spacetime

    (@spacetime)

    For support questions regarding Ad Inserter Pro please use this form:
    https://adinserter.pro/contact#help

    Thread Starter metometo

    (@metometo)

    i get this message when i add this code in header.php
    `تمّ التراجع عن تعديلاتك الخاصة بشفرة PHP نظراً لحدوث مشكلة في ملف wp-content/themes/jannah/header.php وتحديداً بالسطر 35. يرجى إصلاح هذه المشاكل وإعادة محاولة الحفظ مرة أخرى.

    syntax error, unexpected ‘&’, expecting end of file

    Plugin Author Spacetime

    (@spacetime)

    You should put the code into the header code window of the plugin:
    https://adinserter.pro/documentation/header-and-footer-code

    The error indicates that you did not put it right into the theme file.
    However, it makes no sensse to put into the theme files as they are overwritten with every theme update.

    Thread Starter metometo

    (@metometo)

    <?php
    /**
    * The template for displaying the header
    *
    */

    defined( ‘ABSPATH’ ) || exit; // Exit if accessed directly

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <?php wp_head(); ?>
    </head>

    <body id=”tie-body” <?php body_class(); ?>>

    <?php wp_body_open(); ?>

    <div class=”background-overlay”>

    <div id=”tie-container” class=”site tie-container”>

    <?php do_action( ‘TieLabs/before_wrapper’ ); ?>

    <div id=”tie-wrapper”>

    <?php

    TIELABS_HELPER::get_template_part( ‘templates/header/load’ );

    do_action( ‘TieLabs/before_main_content’ );
    <?php
    define (‘AI_CONTENT_MARKER_NO_LOOP_START’, true);
    define (‘AI_CONTENT_MARKER_NO_LOOP_END’, true);
    define (‘AI_CONTENT_MARKER_NO_GET_SIDEBAR’, true);
    ?>

    Thread Starter metometo

    (@metometo)

    theme editor not accept code you sent when i put it like i sent above

    Plugin Author Spacetime

    (@spacetime)

    Your code is wrong.
    You put PHP tags into PHP code.

    Inside PHP code use PHP code:

    do_action( ‘TieLabs/before_main_content’ );
    
    define (‘AI_CONTENT_MARKER_NO_LOOP_START’, true);
    define (‘AI_CONTENT_MARKER_NO_LOOP_END’, true);
    define (‘AI_CONTENT_MARKER_NO_GET_SIDEBAR’, true);
    
    Thread Starter metometo

    (@metometo)

    Plugin Author Spacetime

    (@spacetime)

    No.

    Add PHP code to the existing code (after it) and enable PHP processing.

    Thread Starter metometo

    (@metometo)

    <?php
    /**
    * The template for displaying the header
    *
    */

    defined( ‘ABSPATH’ ) || exit; // Exit if accessed directly

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <?php wp_head(); ?>
    </head>

    <body id=”tie-body” <?php body_class(); ?>>

    <?php wp_body_open(); ?>

    <div class=”background-overlay”>

    <div id=”tie-container” class=”site tie-container”>

    <?php do_action( ‘TieLabs/before_wrapper’ ); ?>

    <div id=”tie-wrapper”>

    <?php

    TIELABS_HELPER::get_template_part( ‘templates/header/load’ );

    do_action( ‘TieLabs/before_main_content’ );
    <?php
    /**
    * The template for displaying the header
    *
    */

    defined( ‘ABSPATH’ ) || exit; // Exit if accessed directly

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <?php wp_head(); ?>
    </head>

    <body id=”tie-body” <?php body_class(); ?>>

    <?php wp_body_open(); ?>

    <div class=”background-overlay”>

    <div id=”tie-container” class=”site tie-container”>

    <?php do_action( ‘TieLabs/before_wrapper’ ); ?>

    <div id=”tie-wrapper”>

    <?php

    TIELABS_HELPER::get_template_part( ‘templates/header/load’ );

    do_action( ‘TieLabs/before_main_content’ );
    define (‘AI_CONTENT_MARKER_NO_LOOP_START’, true);
    define (‘AI_CONTENT_MARKER_NO_LOOP_END’, true);
    define (‘AI_CONTENT_MARKER_NO_GET_SIDEBAR’, true);

    Plugin Author Spacetime

    (@spacetime)

    Looks better now.

    Thread Starter metometo

    (@metometo)

    ok thanks for your effort but problem still happen after adding this code nothing changed
    but when i deactivated it again news blocks worked correctly

    Plugin Author Spacetime

    (@spacetime)

    Maybe you forgot to flush the caches.
    The inserted code should prevent inserting content markers.

    In case you can’t solve the isseue I would suggest to contact plugin support as instructed.

    Thread Starter metometo

    (@metometo)

    ok thanks i sent in contact support and wait for response

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘error with jannah theme’ is closed to new replies.