error with jannah theme
-
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.comThe page I need help with: [log in to see the link]
-
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
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
For support questions regarding Ad Inserter Pro please use this form:
https://adinserter.pro/contact#helpi 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
You should put the code into the header code window of the plugin:
https://adinserter.pro/documentation/header-and-footer-codeThe 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.<?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″ />
<?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);
?>theme editor not accept code you sent when i put it like i sent above
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);like that https://ibb.co/9h4LSs9
No.
Add PHP code to the existing code (after it) and enable PHP processing.
<?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″ />
<?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″ />
<?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);Looks better now.
ok thanks for your effort but problem still happen after adding this code nothing changed
but when i deactivated it again news blocks worked correctlyMaybe 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.
ok thanks i sent in contact support and wait for response
The topic ‘error with jannah theme’ is closed to new replies.