Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter alexopalexo

    (@alexopalexo)

    Ok, so I never resolved the actual issue, but I got my home page functioning the way I want with out it being a static home page.

    Thread Starter alexopalexo

    (@alexopalexo)

    Update
    Hmm, I am still having problems. I think it is a simple fix now after doing proper research. As stated in the last update, my pagination shows up and works… but for some reason I cannot properly get back to page 1 (home/front page). This is a static page with the Permalink settings set to “Post Name” so they show up as: https://www.jovialjoystick.com/sample-post/ but for some reason my pagination urls are being returned as “/?paged=%#%” and working this way when moving to any other page that isn’t page 1 (home/front page). When I hover over the pagination link to page 1 it shows me other page numbers depending on what page I am. So for example if I am on page 3, which works and I hover over the page 1 link, it displays “https://www.jovialjoystick.com/?paged=3” as the destination.

    Thread Starter alexopalexo

    (@alexopalexo)

    Update
    Hmm now my problem is that I can go to any page, but trying to get back to page 1 through clicking “1” or “Previous” does not work. Although, the “Previous” button works when going from “3” to “2.”

    Thread Starter alexopalexo

    (@alexopalexo)

    I resolved this! Not sure if it is the proper way… but I removed this line of code from the pagination at the bottom:

    'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
    	'format' => '?paged=%#%',

    and now it properly paginates as far as I can tell… I will do some further testing.

    Thread Starter alexopalexo

    (@alexopalexo)

    Also, I hope the page functions fine for people, it is just mocked up and not done yet… Thank you in advance!

    I am not sure if there is an easier way than how I am about to explain, because I also had trouble with it. I posted a response in another topic on how to activate the slider, but doing that still does not get you the exact page as the demo sooo what you to do is this:

    Make a new page, I just called mine “Home.” Now this next part is vital, change the slug to: page-template-magazine. Then, select “Magazine” under Template and save. Then, you go to Appearance > Customize and change your front page to Static and under select that page you created with the Magazine template and set it as your homepage. To get posts in the actual slider you then create a post or edit an old one, and under the publish section, click “edit” right next to Public and check “Stick this post to the front page.” What that does is make your post a Sticky Post and that is how you control the slider’s content.

    That only gets your slider up. After searching for a long time, and trying many other things… I could not figure out how to get that black caption area and the other styles that were on the demo page… then I realized I was missing the body class that made all the features look how they do on the demo page. The body needs to have the class “page-template-magazine” which mine was missing. The way I added it was by adding this to the theme’s function php (preferably a child theme’s function file):

    add_filter( 'body_class', 'magazine_body_class' );
    function magazine_body_class( $classes ) {
    if ( is_page( 'page-template-magazine' ))
    $classes[] = 'page-template-magazine';
    return $classes;
    }

    What the above code does is add the class to the body by using the specified page/slug.

    Now I am not a professional coder or anything, just self taught but that is how I got mine to work. Then you can style accordingly. Hope that helps.

    I know this is a bit late and not sure if you ever figured it out, but I was looking how to do this today and figured I would post an answer for future reference… source: https://themehybrid.com/weblog/introducing-unique-theme where it is vaguely described/mentioned.

    What you do is make a new page (I just called mine “Home”), then select “Magazine” under Template and save. Then, you go to Appearance > Customize and change your front page to static and under select that page you created with the Magazine template and set it as your homepage. To get posts in the actual slider you then create a post or edit an old one, and under the publish section, click “edit” right next to Public and check “Stick this post to the front page.” What that does is make your post a Sticky Post and that is how you control the slider’s content.

    Hope that helps someone!

    Thread Starter alexopalexo

    (@alexopalexo)

    Nevermind, I resolved this, sorry for the trouble!

Viewing 8 replies - 1 through 8 (of 8 total)