RTL Problem on change SIDEBAR + POSITION

Posted in: Newspaper
Post count: 54

HI Sir,
The problems on RTL or even on normal WordPress EN ,
My Site is on RTL (Arabic) , so
That when default CUSTOM SIDEBAR + POSITION on left postion .
Shows like
http://prntscr.com/3cvbge
or
left postion

On mobile views shows like :

http://prntscr.com/3cvc9k
or
left side on mobile

That all fine and perfect , but the problem is when i change the options to Right sidebar :
http://prntscr.com/3cvd6q
or
change options to right sidebar

My site show normally on Desktop :

http://prntscr.com/3cve5q
or
right sidebar

but the problem in the mobile view :
http://prntscr.com/3cvfy0
or
the sidebar show first  :(

so please i need to change sidebar postion to left and the post shows first then the sidebar sows second like it shows on the right position, so i’m waiting for your help ,
I Thank you , for your wonderful theme , ^_^ .

Post count: 854

hi,

http://screencast.com/t/n0D20EyP

like here : http://screencast.com/t/HQ27X2PUiY

Thanks for you message.
Radu A.

Post count: 54

thank you for reply,

i did what you told me :

http://prntscr.com/3czraj

http://prntscr.com/3czsbu

then the sidebar goes down
http://prntscr.com/3czsoz

i need the change not for categories only but also for single posts

so please help me ^_^

Post count: 54

thank you for reply,

i did what you told me :

http://prntscr.com/3czraj

http://prntscr.com/3czsbu

then the sidebar goes down

http://prntscr.com/3czsoz

i need the change not for categories only but also for single posts

so please help me ^_^

Post count: 3343

Hi,
You need to use the sidebar from Theme panel to be on right to avoid that issue on mobile.

The issue is that if the sidebar is on left side is first in code and on mobile will be the first to.

Hope this help!

Post count: 54

Hi Marius,
But all problems begun when i change sidebar Theme panel to be on left , I need sidebar to be in left position and the post is on top or first to show at mobile view > so please is there any help ?

Post count: 854

hi,
sorry for misunderstanding, what I have written was not wrong but was not a copy and paste solution.

1) download this package : https://github.com/serbanghita/Mobile-Detect

2) copy the file : http://screencast.com/t/VpXwx0Oh7 here : http://screencast.com/t/ZWuXFw3g0

3) add this code in the function.php file

$detect = new Mobile_Detect;
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');

like here : http://screencast.com/t/8KSWWhcmhNT

4) modify the code in the category.php file

<?php if($deviceType == 'computer') {?>
            <div class="span4 column_container">
                <?php get_sidebar(); ?>
            </div>
        <?php }?>

and


 <?php if($deviceType == 'phone') {?>
                <div class="span4 column_container">
                    <?php get_sidebar(); ?>
                </div>
            <?php }?>

like here: http://screencast.com/t/bGwnf90qhi

Thanks for you message.
Radu A.

Post count: 54

hi,
i do all the steps but :
http://prntscr.com/3eadnz

lead to :

http://prntscr.com/3eady8

please help < ^_^

Post count: 54

hi,
i did all the steps but :

http://prntscr.com/3eadnz

leaded to :

http://prntscr.com/3eady8

please help < ^_^

Post count: 854

hi,
add this lines at the end of functions.php file

$detect = new Mobile_Detect;
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');

I have tested on my computer, it works.

Thanks for you message.
Radu A.

Post count: 54

Sorry Radu A , it did not work for me ,
but after that i’m searching for solution on Google i found to :

1) put Mobile_Detect.php file on the …
/wp-content/themes/Newspaper/

2) http://prntscr.com/3ej3ra

 include 'Mobile_Detect.php';
      $detect = new Mobile_Detect;
    $deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');

then no problem on functions.php or error .

its after that work fine >
so because you are the best how can tell me , is it right or wrong ?

I thank you very much for your perfect help and i’m sorry for annoying ^_^

IHA

Post count: 54

i need to
modify the code in the single.php file to make the same on single post,

where do i put/add this on single.php file ?

<?php if($deviceType == 'computer') {?>
            <div class="span4 column_container">
                <?php get_sidebar(); ?>
            </div>
        <?php }?>

and

<?php if($deviceType == 'phone') {?>
                <div class="span4 column_container">
                    <?php get_sidebar(); ?>
                </div>
            <?php }?>

please teach me that on single.php thank you RaduA ^_^
IHA

Post count: 854

hi,

well look for the get_sidebar() because this is what you are replacing.

iha, you see that we do offer support, but you are not a programmer, and you really don’t know what you are doing, please hire a programmer to modify the theme, it will save you (and us) of a lot of wasted time.

Thanks for you message.
Radu A.

Post count: 54

Ok RaduA , I Know what i did , so for others , the code in single.php

like
http://prntscr.com/3etgkb

so all it solved thank you RaduA , and sorry of wasted your Time .

the issue is closed here ,
Thank You ^_^

Post count: 2

Hi,
I did exactly as you wrote and… nothing… :/

the browser cannot load the website

Post count: 11

Why you don’t fix it in the new releases? I want to use the left sidebar also, and it’s not normal if I want to read an article that I have to go down all over the sidebar because is the first in the code… doesn’t make sense

Post count: 6600

Hi,

I have added this on our todo list and we will try to fix this in next theme updates!
Sorry for the inconvenience and thanks for the message!

Post count: 11

Hi! did you fix it?? I have so many problems because it!

Post count: 6600

Hi,

Sorry for all the trouble and for the inconvenience unfortunately as this hasn’t been changed within latest updates.
We have this on our attention and try to find a better implementation within newspaper 5 theme version.
You can try the solution Radu suggested until then.

Thanks for the message and for understating!

Post count: 14

I did all the steps and it doesn’t work!
And you said that the next update will not support rtl
So how will you fix it if my website is on rtl??
You can make a small update to fix this big problem

Post count: 6600

Hi,

Yes, you are right the rtl support will be removed in next version, however this issue doesn’t concerns just rtl users and the option to set the sidebar on the left will not be removed.
Unfortunately we can’t make an update for this but I’ll let you know when we have a fox for this.
Sorry for the inconvenience!

Thanks for the message!

Post count: 54

OMG ??????? rtl support will be removed in next version ????????

You Can’t Remove Features from your theme after 9000 bought it !!! , that’s not allowed in themeforest.net to remove this feature or Other Main Feature //
You told customers that this theme is RTL Support , You should keep the promise to the all Users So why SHAHIFA 5 still support RTL ????

Viewing 22 posts - 1 through 22 (of 22 total)
The forum ‘Newspaper’ is closed to new topics and replies.