Forum Replies Created
-
AuthorPosts
-
January 14, 2017 at 12:06 am in reply to: using a custom single-CTP.php page for a CPT I have added #733381
Here you go.
Hi,
I just update the theme files for this site and it still not working how it should.
Thanks
-DanHi Nikko,
The widget seems to work but just in case I have also posted the code here.
Let me know if you find anything.
Hi,
So I got the header issue worked out. I was able to add the JS to the footer and get all that sorted out.
Im still having issue with my CTP though.
I at one point did have the events calendar plugin running but that is not deactivated. I have since created a CPT called events. This is working for the most part but I am not able to create a custom archive page for this CPT. I have copied the archive.php over to my child theme and renamed it archive-events.php in hopes this would do the trick but it does not seem to work.
Any advice?
Thanks
-DanThe Events plugin is deactivated. I installed and was going to use it but then after realizing that i needed extra features I disabled it and created the CPT events.
I need a custom header because i need to add a custom snippet of JS for part of my site to function.
I will give it a try tho.
Thanks
So WordPress and the enfold theme are both updated.
After updating the theme the site broke. I am using a custom header in my child theme and the php error is happening on line 12
$filterable_classes = avia_header_class( avia_header_class_string() );
Once I remove that line my site shows back up. I have not made a lot of changes to the custom header I am using I just needed to add some JS for a custom feature I am using.
Would it help if I gave you admin access into the site?
Thanks
-DanI will make sure and update the theme and wordpress and yes. I did have The Events Calendar Plugin loaded on the site at one time. Would that have anything to do with it?
So I think what im going to have to do it set up a custom archive page for each CTP I create. So I can call the sidebars in the code directly. One thing I will need to know is that when you create a sidebar within the widget area how can I tell the ID that get assigned to that widget area so I can call it out directly in the code?
Thanks
-DanHi,
Thanks for that info but with that widget you can not pick archive pages. This is where im having the issue.
Perfect. Thank you.
So I think this might be a set in the right direction but after i did this all the titles of my other pages changed to Default Title? They need to remain the title given to them.
Like this one would be “About Us”
The same title that is on the first page. Insights is what the blog index page says but when you go into the blog post page it goes back to Counselors.
Here is the code
// Change Blog Title add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( $args['title'] == 'Blog - Latest News' ) { $args['title'] = Insights; $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; } // Change CPT Title add_filter('avf_title_args', 'fix_single_post_title_2', 10, 2); function fix_single_post_title_2($args,$id) { if ( is_singular('post') || is_singular('counselors') ) { $args['title'] = Counselors; $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
I just added another custom post type that im going to need to do this too also.
I have it working here This is a custom post type post page, there is not index page for this post type.
But here are two other CTP that I need it working on correctly
This is the main default wordpress “post” I just have changed the name of it
Default post with name changed
So technically i am using the default “post” with a changed name and also have two custom post types
Hi, sure thing. So it was kinda simple actually. I just used the background video on a color section and used CSS to move it over to the left side of the div. Then on my right side block I added a background color to my 1/2 section and changed the padding to eliminate the spacing on the sides of it. I had to change/use a lot of CSS to make it happen but that’s the simple version of it.
Odd, i am not getting that
Hi,
So I thought I had this working right but it turns out I don’t.
When you are on this page.
The title is right, but when you click into a post it says this.
This is the title for my CPT I added in.
Any guidance?
Thanks
-DanHi,
Yes, that is what i’m trying to do. I know that out of the box it’s only possible with a color section but i’m all about thinking outside the box. Any advice. Im good with code was just going to come to you guys incase you had any thought on how to reach my goal.
Thanks
-DanI do not see a link?
Ok, So I used the wp-force-ssl and that worked but not im getting a error for the page that my google map is on.
This page was unable to display a Google Maps element. Please contact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting: http://g.co/mapsJSApiErrors
Here you go, thanks for the help
Any update on this, looks like you went in and made some changes?
Here you go.
I Just updated them.
Thanks
Sure thing here you go
Yea, So I see what you are saying, but my goal was to create a search just for that page that only searches in the provider’s post type. Along with a normal search that will just go in the header. You know what I mean?
So I would need the normal search to still work but I would also need a custom search on that pages that only searches in there.
Thanks
-DanHi, So I honestly don’t think it would require a lot of customization It would really only require me getting that bread crumbs shortcode working, and thats what im having trouble with. I can’t seem to get it too work so If you could just help me get that working that would be all I needed. Please let me know what you need from me to get that working.
Thanks
-DanOK that fixed it but still not sure why it broke after adding the blog grid, I have never seen that before.
Any change you got to look at my tab section and why i’m getting scroll bars on the content within them?
So what i’m trying to do just to give you some background. I’m trying to to create the title and breadcrumb shortcode so I can add it myself to the header.php. I want to do this so I can wrap that in a custom div and call different background for each page via a ACF field that I will create. I am trying to use
<?php echo do_shortcode( '[bread_crumb]' ); ?>
in my header file along with the other instructions found on using the breadcrumbs shortcode but am having no luck
Thanks
So I the problem i’m running into is that it shows up twice now. When I have it set in the settings to show in the Enfold settings it shows up two times. When I turn it off both of them go away.
so yea I did, i don’t think i missed any steps but still not working?
-
AuthorPosts