Jump to content
  • Sign Up
  • 0

HTML Code


Escorter

Question

Hi all,

I’m having an issue on my customers site, if you could help me out, it would mean a lot to me.

I am using a css script on wordpress which causes me the following problem:

I want to view a users profile on my desktop’s theme and everything works perfectly. I then went on my mobile and when I wanted to click on that profile to view the following error appears: 

There has been a critical error on this website. Learn more about troubleshooting WordPress.

I then found the following on the file manager on the desktop theme on single-escort.php file is the following code inserted:

<?php if($webidev['webi-esc-profile-hide-sidebars'] == '1') : ?>

<?php get_header('nosidebars'); ?>

<?php endif; ?>

<?php if($webidev['webi-esc-profile-hide-sidebars'] == '0') : ?>

<?php get_header(); ?>

<?php endif; ?>

<?php if($webidev['body_wrapper'] == 'boxed' && $webidev['webi-esc-profile-hide-sidebars'] == '1') : ?>

<div class="container"><div class="row no-gutters">

<?php endif; ?>

<?php include(get_template_directory() . '/templates/single/single-escort.php'); ?>

<?php if (have_posts()): while (have_posts()) : the_post(); ?>

<?php the_content();  // Dynamic Content ?>

<?php endwhile; ?>

<?php else: ?>

<h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>

<?php endif; ?>

<?php if($webidev['body_wrapper'] == 'boxed' && $webidev['webi-esc-profile-hide-sidebars'] == '1') : ?>

</div></div>

<?php endif; ?>

<?php if($webidev['webi-esc-profile-hide-sidebars'] == '1') : ?>

<?php get_footer('nosidebars'); ?>

<?php endif; ?>

<?php if($webidev['webi-esc-profile-hide-sidebars'] == '0') : ?>

<?php get_footer(); ?>

<?php endif; ?>

 

 

But on the mobile theme single-escort.php only has this code inserted:

 

 

<?php get_header(); ?>
    
<div class="breadcrumbs">
<?php bcn_display(); ?>
    
</div>

<?php if (have_posts()): while (have_posts()) : the_post(); ?>


    <?php the_content(); // Dynamic Content ?>

        
    <?php endwhile; ?>
    
    <?php else: ?>            
            <h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>
    <?php endif; ?>
    


<?php get_footer(); ?>

 


I then replaced the code from the desktop to the mobile and guess what, the error page dissapeared and I can view the profile. BUT it looks horrible and not correctly displayed.

How can I write this code so that it will look like on the desktop theme?

Thank you.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...