• Hello,

    I want to switch the “Previous” and “Next” Button and I don’t know if it’s possible directly with CSS.

    I don’t want to switch the whole button, but only the word “Next” and “Previous” and the little arrow

    Thx for helping.

    PS : I work on local so I take screenshot.

    http://hpics.li/7614388
    http://hpics.li/a5add71

    • This topic was modified 8 years, 9 months ago by egostrip.
    • This topic was modified 8 years, 9 months ago by egostrip.
Viewing 3 replies - 1 through 3 (of 3 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, use the following custom CSS to switch the next and previous nav arrows on single post pages in the right column.

    .nav-links {
    	display: flex;
    	display: -webkit-box;
    	display: -moz-box;
    	display: -ms-flexbox;
    	display: -webkit-flex;
    	-webkit-flex-direction: column;
    	-moz-flex-direction: column;
    	-ms-flex-direction: column;	
    	flex-direction: column;
    	-webkit-box-orient: vertical;
    	-moz-box-orient: vertical;
    	-ms-box-orient: vertical;
    	box-orient: vertical; 
    }
    .nav-next {
    	-webkit-box-ordinal-group: 1;
    	-moz-box-ordinal-group: 1;
    	-ms-flex-order: 1;
    	-webkit-order: 1;
    	order: 1;
    }
    .nav-previous {
    	-webkit-box-ordinal-group: 2;
    	-moz-box-ordinal-group: 2;
    	-ms-flex-order: 2;
    	-webkit-order: 2;
    	order: 2;
    }

    This code works on all modern browsers, but in the case of Internet Explorer, only version 10 and later (and Edge) recognize the code, so IE9 and older will not see this change.

    Thread Starter egostrip

    (@egostrip)

    Hello,

    I’m sorry, this is not what I want.

    It was a misunderstanding (my bad), here’s what I wanted to explain :

    http://hpics.li/a052267
    http://hpics.li/f47f5d0
    http://hpics.li/25c06e9
    http://hpics.li/1a8e744

    Don’t hesitate if you need more explanation. (sorry for my english)

    Thank you.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hmmm, when I add the following to the demo site via my web inspector (I have one extra CSS rule I’ve added for the portfolio archive button), the next and previous arrows on the top right change position, and the blue slide-out labels change position as well since they are tied to the buttons.

    .nav-links {
    	display: flex;
    	display: -webkit-box;
    	display: -moz-box;
    	display: -ms-flexbox;
    	display: -webkit-flex;
    	-webkit-flex-direction: column;
    	-moz-flex-direction: column;
    	-ms-flex-direction: column;	
    	flex-direction: column;
    	-webkit-box-orient: vertical;
    	-moz-box-orient: vertical;
    	-ms-box-orient: vertical;
    	box-orient: vertical; 
    }
    .nav-next {
    	-webkit-box-ordinal-group: 1;
    	-moz-box-ordinal-group: 1;
    	-ms-flex-order: 1;
    	-webkit-order: 1;
    	order: 1;
    }
    .nav-previous {
    	-webkit-box-ordinal-group: 2;
    	-moz-box-ordinal-group: 2;
    	-ms-flex-order: 2;
    	-webkit-order: 2;
    	order: 2;
    }
    .nav-archive {
    	-webkit-box-ordinal-group: 3;
    	-moz-box-ordinal-group: 3;
    	-ms-flex-order: 3;
    	-webkit-order: 3;
    	order: 3;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Switch “Next and Previous” button’ is closed to new replies.