• Hi guys
    My site is finally online…It’s built as a static site based on pages only. Here is the url : https://www.spacessential.com
    While I am rather happy with the look and navigation, I think I could really improve the “stickiness” of the average user.
    The obvious step for me would be to change next/previous at the end of each article by the title of the pages, it would help greatly.
    I added some code to create the next/previous, and I have no idea if what I want is possible – with a hack, widget, plugin etc…
    On top of it it would be to show to beginning of the next article as an excerpt under the current article.
    Thanks for you help in any case…

Viewing 8 replies - 1 through 8 (of 8 total)
  • I added some code to create the next/previous,

    possibly a good star would be if you could paste that code into a https://pastebin.com/ and post the link to it here.

    if you already have the permalink to the next/prev page, it shouldn’t be too difficult to add the page title.

    i would suggest, that you add a css class to the container div of your page nav, to make formatting easier.
    it probably needs a bit of a top margin to detach it from the content.

    Thread Starter laurentlanglais

    (@laurentlanglais)

    At well Alchymyth that’s where you start to speak latin to me lol
    I’ve got the next/previous implemented already – as you can see if you go on different pages of https://www.spacessential.com
    The code is the one given here, put in page template
    https://sillybean.net/code/wordpress/next-page/
    Now I’ve got zero knowledge on those things so I’ve got not the slightiest idea on how to add the page title. css class to the container etc. I’m afraid I would need someone to guide me step by step here ??

    The code is the one given here, put in page template

    for any suggestions, to change the css class of the div, could you paste the code of that template into a https://pastebin.com/ and post the link to it here?

    as for the page titles, it is provided with the plugin – check under ‘dashboard’ ‘settings’ ‘next page’:

    https://imageshack.us/photo/my-images/821/nextpagesttingspanel.jpg/

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Sorry here is the link for the code then
    https://pastebin.com/nexErkXM

    I’ve just added this code to my page template. I do not have the “next page” plugin installed! From what I recall it did not work when I tried it, maybe because my site is build on page rather than post? Hence my problem to try to implement the title instead of next/previous… I’m clueless…

    Thanks a lot for your help

    edited:
    https://pastebin.com/NZiKUtpU


    there is a style in style.css:

    .navigation {
    	text-align:right;
    	font-size:13px;
    }

    add something like margin-top:30px; to it, to create some space between the page content and the page navi

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Wow pure genius mister ! you see this is the difference between someone who understands what he does with code (you) and me lol
    So both patches worked brilliantly.

    Now got to ask you something else, if possible. On some pages the previous and next pages titles are long ones: therefore the navigation links look messy. Here are some examples:

    https://www.spacessential.com/?page_id=714

    https://www.spacessential.com/?page_id=379

    ( on another note I must have messed up somewhere because I use to have the page TITLES in the URL, not the page ID! Got to check permalinks I guess…).

    So is there a way to code the previous page title to be in one column on the right – on several line rather than one, and same for next title page, so it wouldn’t end up looking messy like this?

    Otherwise I would like very much to replace also the “up one level” by the title of the level, if possible?

    Thank you so much anyway!

    about the long link texts, try:

    .navigation .alignleft {display:block; width: 250px; text-align:left;}
    .navigation .alignright {display:block; width: 250px; text-align:right;}

    Otherwise I would like very much to replace also the “up one level” by the title of the level, if possible?

    a:
    you haven’t posted the used code, yet;
    b:
    you’ll run into even more alignment problems, with long link texts for the ‘up level’;
    c:
    possibly a good idea:
    the plugin only shows the ‘up one level’ if there really is one level to go up to.

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Cool. Your new code worked wonder on the alignement problem.
    You’ve got a point about the Up lvel. No need to change anything at this stage I think, anyway people can easily navigate with the sidebar.

    Thanks a lot mister you’ve been my guide and mentor today I’m very grateful!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘title instead of next/previous’ is closed to new replies.