Forum Replies Created
- AuthorPosts
- plimfecParticipant
I recommend these two plugins for that:
https://wordpress.org/plugins/widget-logic-by-path/With just the first you can achieve what you want, but the second makes it easier to use.
April 4, 2017 at 6:25 pm in reply to: Change "read more" (english) button into "en savoir plus" (french) #2699plimfecParticipantI’m aware of the option to change the ‘read more’ text through the php file, but I prefer to change the language file instead. And I’d love to use the program Poedit for it, because this would prevent the necessity of adding another plugin to the WordPress backoffice.
Also: I’d like to translate all kind of English words and phrases throughout the website, not just that particular button text. Changing all of these through the code files, would result in a too big child theme.
But thank you for the suggestion, for translating just one button text, it would certainly do.
I think i’ll give the Loco translate plugin another try. I must have overlooked something I suppose..
plimfecParticipantNo problem, happy to help 🙂
plimfecParticipantI found the answer.
You need to force the homepage link in your site menu to get the ‘current class’ (so you can call it in your stylesheet). You can do so in the backoffice of WordPress, like explained here:
http://wordpress.stackexchange.com/questions/39529/when-at-or-home-my-menu-doesnt-get-a-current-menu-item-class (first answer)
Then you add this to your custom stylesheet:
.page-template-home-template .ht-main-navigation .current_page_item > a, .page-template-home-template .ht-main-navigation .current-menu-item > a { background: #3366CC; color: #FFFFFF; }
You can put this code wherever you normally put your custom code, but best you use a child theme for it.
March 26, 2017 at 8:32 pm in reply to: Change "read more" (english) button into "en savoir plus" (french) #2598plimfecParticipant@ Myrian:
Did you try already? And did you succeed?—
Here it’s not working at all. I’m able to edit the files using the plugin mentioned above, but the changes don’t show at the front of the website.
So, the next step was trying to change the language file (total.pot) using the program Poedit (like I use to do with other themes), but that’s not working either. No changes visible at the front.
I tried all locations on the server to put the language file. In my child theme, in the original Total folder, even in the WordPress folder: ‘wp-content\languages\themes’ (sometimes this works, like it does for the old Twenty Eleven theme).
I’m out of ideas, so any help is highly appreciated.
—
Btw Poedit gives a syntax error concerning ‘nplurals=INTEGER; plural=EXPRESSION;’ when I try to save the language file after changing it. I replaced it with the right one (I suppose):
nplurals=2; plural=(n != 1);
… and the error disappeared.
But still no luck with the language file.
Are we sure everything is allright with that file?plimfecParticipantYes, it is working. But pay attention to the quotes, these should be the right ones for PHP to recognize.
This should work:
add_filter('total_home_sections', 'total_new_home_sections'); function total_new_home_sections($array){ $array = array('slider','about','portfolio','service','featured','team','counter','testimonial','blog','logo','cta'); return $array; }
March 26, 2017 at 12:41 am in reply to: How to add "see all posts" button or link to Blog Section? #2590plimfecParticipantYou could use the ‘Call To Action Section’ for this:
1. Go to Appearance > Customizer > Home Sections
2. Activate the ‘Call To Action Section’
3. Choose a title like ‘Read all blog posts?’
4. Choose for the ‘Button 1 Text’ something like ‘Visit my blog’
5. Add in the field ‘Button 1 Link’ the link to your blog pageplimfecParticipantI’m dealing with the same issue. I don’t get it done in the stylesheet, so any help is appreciated.
Thanks in advance.
plimfecParticipantHi there,
Are you considering to add this feature in the future? I hope so, because I think post tags are crucial for SEO.
Thanks for the wonderful theme btw, besides the missing tags I really love it.
plimfecParticipantThank you very much, billy!
Your code is working great.One thing however:
In your code you use ‘.hs-slide-cap-desc’, but of course this should be ‘.ht-slide-cap-desc’.So this is the (your) right code:
.ht-slide-cap-desc { display: block; display: -webkit-box; max-width: 100%; height: 3.75em; margin: 0 auto; font-size: 25px; line-height: 1.25em; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 720px) { .ht-slide-cap-desc { font-size: 18px; } }
@media screen and (max-width: 580px) { .ht-slide-cap-desc { font-size: 16px; } } - AuthorPosts