Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
nateb2127
tagDiv Member

https://mavjournal.com/wp-content/uploads/2023/03/Screenshot-2023-03-28-at-9.40.59-PM.png

Here’s a screen shot. Essentially, I am trying to bring in the full post to the post loop instead of just utilizing the excerpt. However, I cannot have other pages displaying the full post so it really needs to be restricted to just this page.

Does that help?

nateb2127
tagDiv Member

And actually it shows up as a custom post type in the theme; https://mavjournal.com/wp-content/uploads/2022/12/Screenshot-2022-12-21-at-8.40.16-AM.png

nateb2127
tagDiv Member

Okay, so how do I stop the mobile theme from loading on that page.

nateb2127
tagDiv Member

Thank you Bettina, I disabled the classic editor and no luck.

nateb2127
tagDiv Member

I’m sorry; I know to how to turn it off. However, I cannot access that setting for this specific CPT. I am wondering if there is function to turn off the mobile theme for specific pages or CPTs. The CPT I’m using only uses the classic editor not the block editor.

nateb2127
tagDiv Member

Hello, that’s what I’m trying to disable.. I have the mobile theme loading on a cpt but I can’t access that setting because the cpt does not go to the block editor.

How can I turn off the mobile theme for this specific cpt with code?

nateb2127
tagDiv Member

Thank you for the quick reply.

Okay, so without pictures – I’ve found the problem but can’t understand why. We use Custom Post Types for a lot. In order to get the custom post types to display by default in Categories, and such – I believe this code is needed.. However, this code also breaks that ability for the theme to grab the custom post types and place them into the categories and home page by default..

//Add CPT to Home
add_filter( ‘pre_get_posts’, ‘my_get_posts’ ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( ‘post_type’, array( ‘post’, ‘headlines’, ‘devotional’ ) ); return $query; }
//Add CPT to Category Pages
add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if( is_category() ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘nav_menu_item’, ‘post’, ‘headlines’,’devotional’, ‘live-blog’); // don’t forget nav_menu_item to allow menus to work!
$query->set(‘post_type’,$post_type);
return $query;
}
}

nateb2127
tagDiv Member

There was a conflict with letting any one sign up.. it was because of code from an old Memberships program in my custom plugin. – All is well.

nateb2127
tagDiv Member

Also, when register is clicked on the front end in the console this is the error; https://mavjournal.com/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=12

nateb2127
tagDiv Member

Thanks for the reply, the code snip above actually worked a bit, I placed it in the mobile theme functions and everything works as far as I can tell, the only thing I can’t figure out is how to get it on the front page.

Thanks for the reply though! I hope you guys keep updating that mobile theme as it is fantastic!
Nate

nateb2127
tagDiv Member

Hey Alin,
No worries – I just wanted to see if anyone could help because my hosting company doesn’t seem to be able too. All is good though – we fixed it, I think.
The set up is opcache, redis, and super cache – site loads in 1.2 seconds on average..

nateb2127
tagDiv Member

Thank you Bogdan for the update!

nateb2127
tagDiv Member

Hey Bogdan,
Any updates?

nateb2127
tagDiv Member

I’m sorry Bogdan, I’m missing something and I am not sure why – I think I have tried that, with no luck. I’m using a static pages for the home page I don’t use sidebars because I wanted it to truly look somewhat like a newspaper see here: christiantruther.com
What I am trying to heavily promote and use is this page: christiantruther.com/news (which is our blog page) and that is the page I am unable to change the sidebar for.
I can change it like you showed me, I was just hoping to be able to change it on that specific page and leave the single post sidebar alone.
Is that possible?

nateb2127
tagDiv Member

That sounds amazing!! I have just had redis installed and wow. Yeah it’s fast – and the run we are currently under (100,000) page views per day, for the past few days; it’s holding solid and loading within 4 seconds. I’m stunned that redis made that much of a difference and the theme works great with it too. Now, as for the other stuff, I will run that by our team and see what we can use because – rumor has it the faster you get the more views you get.
Thanks again Chris for your “secret” code that goes into htaccess – that did a lot as well.
Have a look at our site if you want too: christiantruther.com
(Keep in mind we are getting slammed – and will be for a bit longer, we have more posts to do)
https://gtmetrix.com/reports/christiantruther.com/C1mA5uIz
https://tools.pingdom.com/#!/dROv7R/https://christiantruther.com

nateb2127
tagDiv Member

hey Chris would that load even with videos?
We do journalism and alot is based on video

nateb2127
tagDiv Member

Hey guys thank you so much for your suggestions!!
we are getting quadruple the views we normally get and the site is struggling to stay alive so we are going to install redis and see how it goes!
I hope it works!

nateb2127
tagDiv Member

I tried commenting the line but for some reason I cannot get it to remove the sidebar in the back end, has the code changed?

nateb2127
tagDiv Member

Thank you for responding.
Actually they suggested it because it would make it faster overall.
I’m with inmotionhosting and I have yet to have a problem with their hosting.
The dedicated support and speed is amazing plus the theme works phenomenally with their config.
All I wanted to do is speed it up past what I have now and currently with the config you have mentioned when we aren’t getting obliterated with views it loads in 1-2 seconds.

When I originally set up the theme I set it up using your config and your config is mostly the reason it loads so fast as is – so thank you all for taking the time to put those together.
Thanks for your input, I’ll have a look around.
Nate

nateb2127
tagDiv Member

Ok sounds good thank you!

nateb2127
tagDiv Member

Hey thanks for getting back to me! Thank you for the tips on coding, I am no coder I am a journalist and a videographer. I will have a look for the css properties, and I was unaware of the adding shrortcodes to the mobile pages. Thank you for your help!

I also did have a question on site speed, what are all of your recommendations for a heavy traffic site?
I have cloudflare but its off at the moment so I can work on it, I have wpsupercache and a dedicated server.

Thank you!
Nate

nateb2127
tagDiv Member

Sorry my site is freedomfightertimes.com

nateb2127
tagDiv Member

Yeah I went through yesterday and set it all to the same through the option panel. My only problem is that when the page loads, it loads the old font first and then the new font. Is there a way to change that so it doesn’t happen?

Thanks
Nate

nateb2127
tagDiv Member

Oh ok thank you!
Nate

Viewing 25 posts - 1 through 25 (of 27 total)