Forum Replies Created
-
AuthorPosts
-
November 22, 2017 at 12:34 pm in reply to: Is it possible to show category name as page title? #880214
Hi Ismael,
I understand what you’re saying. So for all reviews I’ve now activated both the main category (“Recensies”) and the child category. Strangely enough this works for two of the existing reviews but not for the other two (see below).
As a reminder, the code which we now have in Child functions.php is:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( has_category( 'recensies' ) && is_single() ) { $args['title'] = "Recensies"; } return $args; }
One more remark: also the two reviews that now give the correct page title, still has the bold active status of “Berichten” in the menu. Is there something that can be done to also change that?
Thanks & regards,
MoniqueNovember 17, 2017 at 2:37 pm in reply to: Is it possible to show category name as page title? #878072Hi,
See below. These reviews are all created by posts with main category “recensies”.
They also have a subcategory, but that has another reason and is (as far as I can see) not applicable for changing the post title.
Best regards,
MoniqueHa ha, that’s funny @Chris :-D
I am “using” children all the time ;-)
Hi Yigit,
Thanks, that works! My client will be thrilled :-)
Can you flag this topic as closed please?
Regards,
MoniqueThanks Yigit!
Bold question: do you have little children perhaps? ;-)
November 16, 2017 at 6:03 pm in reply to: Is it possible to show category name as page title? #877634Hi,
I am loosing track a bit… :-(
What do you mean by ‘you have to use the same filter’?
Since the slug name is ‘recensies’, do you mean that I have to go back using following code:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( has_category( 'recensies' ) && is_single() ) { $args['title'] = "Recensies"; } return $args; }
I’ve tried that, but it doesn’t work.
Please advise.
Thanks & regards,
MoniqueHi Yigit,
That works well! Thanks!
Can you flag this topic as solved please?
Best regards,
MoniqueA few more new Enfold base websites:
November 10, 2017 at 9:10 am in reply to: Is it possible to show category name as page title? #875059Please see below.
November 9, 2017 at 10:08 am in reply to: Is it possible to show category name as page title? #874572Hi Ismael,
We’re not using portfolio custom post type to create the “recensies”, we’re using normal posts with category “recensies”.
Still I tried your suggestion to change “has_category” to “has_term”, but that doesn’t work.
Please advise.
Best regards,
MoniqueNovember 8, 2017 at 2:59 pm in reply to: Is it possible to show category name as page title? #874198Hi Ismael,
My client was here this morning and struggled to accept the fact that we would have to create/change the array for all separate categories all the time. This would mean that each time she creates a new category, she would have to ask me to change the functions.php, which doesn’t seem very workable.
So we’ve investigated what could be a workable solution. The idea is that now we present all reviews in one overview on the “Recensies” page (see link below) as well as we present for each book/portfolio the reviews for that specific book/portfolio (see link below).
For the Recensies page we’ve created a main category in posts called “Recensies”.
For the single book/portfolio we’ve created sub categories in posts, in the example called “Recensie Noortje en de paaseitjes”.After these changes we’ve noticed that the code you’ve provided (#post-871924) does no longer work properly: the single post for “Recensies” now shows again “Berichten” as page title… I hope you are still able to follow what I mean ;-)
Sorry for this, but can you help again please? And see also my question about active menu item for “Recensies”.
Best regards,
MoniqueNovember 8, 2017 at 10:22 am in reply to: Is it possible to show category name as page title? #874089Hi Ismael,
That works great :-)
One more thing: is it possible to show also the corresponding active page in the menu? Now in the menu you still see “Berichten” as active page (bold) as where the active page should be “Recensies”.
Thanks & have a nice day!
MoniqueNovember 7, 2017 at 5:10 pm in reply to: Is it possible to show category name as page title? #873829Hi Ismael,
Thanks! We’re getting there :-)
Can I add more categories to show page title “Recensies”? For example something like (perhaps):
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( has_category( 'CATEGORY1', 'CATEGORY2' ) && is_single() ) { $args['title'] = "Recensies"; } return $args; }
Best regards,
MoniqueOctober 30, 2017 at 4:31 pm in reply to: Is it possible to show category name as page title? #870557Hey Ismael,
I followed the instructions from the topic mentioned. Unfortunately it does not work as required. Attached a screenshot of the single testimonial. There are two remarks:
- The page title should read Recensies (in stead of Berichten).
- The style of the menu should be that Recensies looks as Berichten on the website/screenshot. An active page in the menu should be bold and no border-bottom. Now it is normal with border-bottom. And the page Berichten is still bold…
There is another issue we need to take into consideration: the recensies consist of different categories. My client wants to show all reviews for each book together in it’s own area on the Recensies page. The only way to do that was to create different categories for each book and place them as masonry grids on the page.
Please advise.
Best regards,
MoniqueCan you please flag this topic as solved?
Thanks!
Hi Victoria,
Yes, you got it working :-)
I am a ‘curious’ person though and want to learn. I work a lot with Enfold. That’s why I ask these questions: I am just trying to understand why some things don’t work as you would expect them to…
Can you please flag this topic as solved?
Thanks & have a nice day,
MoniqueHi Vinay,
I did what you suggested, however in FF 56.0 the issue still persists.
Meanwhile I also checked with FF developer edition 57.0 and here there is no issue. Also all other browsers are ok as well… Perhaps a small bug in FF 56.0 on my pc?
I’ll accept it for now ;-)
You may flag this topic as solved.
Have a nice day,
MoniqueHi Gloria,
Since it is a theme option to change the height of the header, you may expect this to automatically be adjusted. Or not?
Regards,
MoniqueHi Victoria,
Thanks! That helps!
Any idea what caused the issue in the first place?
Regards,
MoniqueHi Victoria,
Version FF is 56.0 on Windows 10 Pro.
I attached two screen prints of the (small) issue. There is exactly 1px extra margin between the title and the <p> after the first slide.
Regards,
MoniqueThanks Ismael,
That works!
Can you please flag this topic as closed?
Have a nice day,
MoniqueHi Ismael,
Thanks for your advise.
My client asked me to solve the styling issue for H3’s through the theme options extra styling.
Can you please flag this topic as solved?
Have a nice day,
MoniqueHi Yigit,
Hmmm, strange… Anyway, whatever “problem” there was, it’s now “solved”.
Can you please flag this topic a closed?
Thanks & best regards,
MoniqueHi Nikko,
Yes, I am using avia builder > grid row (2/3 and 1/3) > flexible masonry (in 2/3 column) to set up the blog page.
On the same page in the right sidebar (1/3 column) you can see a widget. The widget title is also a H3 of which the style is as it should be.
However, I just noticed that once you click to a single post (see example below), the widgettitle (also H3) in the sidebar is showing the same style as the av-masonry-entry-title of the posts in the blog page (also not as required). Most probably the difference is because the blog page uses avia builder and a single post not. I’ve always found it a bit strange with Enfold that there is a difference in style within the sidebar when you use avia builder compared to a “standard” sidebar. I’ve run into problems several time when using both “systems” for a blog, since the clients always want it to look the same…
Regards,
MoniqueHi Jordan,
Ok, I understand. Please advise Kriesi for this. It is a hell of a job to navigate through all pages of features to find out if some feature has been asked for before. Nor doesn’t it make sense to ask the same features again and again…
You can flag this topic as closed.
Thanks & regards,
MoniqueThanks Yigit, also for your great support!
Recently launched two more websites based on Enfold:
@unicaweb: at https://www.soulwild.it/ the menu can only be read on the home page. On the other pages the menu is white on white…
Nice cats by the way <3
regards,
MoniqueHi Yigit,
That’s what I thought as well.
Please find details below.
Regards,
MoniqueHi Yigit,
Yip, seems to works fine now. I don’t fully understand why 1024 px (I set hamburgermenu for mobile and tablet in Enfold options – under 990 px I believe), but hey it works!
Can you flag this topic as closed please?
Thanks a lot and have a nice day!
Regards,
Monique -
AuthorPosts