Tagged: post title
-
AuthorPosts
-
May 4, 2017 at 12:48 pm #787762
Goodmorning,
Recently i’ve inserted some css code to modify my post title. Now, i’d like to show the related post element (with the magazine element of the Advanced Editor) but the related posts titles use the same css code of the post titles so they are big, bold and green (in my case), instead of being small and black as usual. Can you please send me some css code to solve this problem. I’d like to have “normal” titles for related posts and custom title for articles.Then an other question. Even if I’ve activated the off set, the article of the page is also in the suggested articles. How can i fix that?
Thanks!
- This topic was modified 7 years, 6 months ago by viaggiareverde.
May 4, 2017 at 1:29 pm #787797Hey viaggiareverde,
Let us edit your code so that it calls only the main-title.
Please use this instead:
.single-post .entry-title.main-title { font-size: 30px !important; font-weight: bold; text-transform: none !important; } /* COLORE */ .single-post .entry-title.main-title a { color: #036103 !important; text-transform: uppercase !important; }
Best regards,
SarahMay 4, 2017 at 2:09 pm #787810Thank you. It works, now the related post title is normal as usual.
What can i do to remove the duplicate article? At the moment (using the magazine element with the tags) it show me also the same post that it’s above that element, so it “suggest” the article just read.May 4, 2017 at 3:20 pm #787853Hi viaggiareverde,
That’s strange. By default, related-posts.php should exclude the current post.
'post__not_in' => array($this_id))
Can you try this solution?If that doesn’t work, may we have temporary access into your Dashboard so we can take a closer look?
Best regards,
SarahMay 4, 2017 at 4:27 pm #787926I think it sould, but maybe i have this problem because i’m using the advanced layout builder for posts (cause i need it). Infact i’m using the magazine element like a “related post” element. I can understand that my use is not exactly what the magazine element has been built for, but it seems the most appropriate solution for showing related post.
For the solution you suggest, i don’t understand what i have to do (where to go to do this changes and so on), so can you please explain it a little more? Or tell me what you need
Thanks
May 4, 2017 at 4:37 pm #787931Hi,
In your magazine element, can you try setting the Offset option to prevent showing duplicates? http://screencast.com/t/FRA0HMqcIxsn
Best regards,
SarahMay 4, 2017 at 4:41 pm #787936It’s already set in this way
May 4, 2017 at 6:08 pm #787985Please tell me if you need more information to solve this problem. Thanks
May 5, 2017 at 12:22 pm #788347Hi!
The solution for you to try requires you to put the code in functions.php. You can access it through Appearance > Editor. Can you try it please?
If it doesn’t work, may we have temporary access into your Dashboard so we can take a closer look? Thank you.
Best regards,
SarahMay 5, 2017 at 7:10 pm #788625i’ve tried to put that code in the fuction.php but the magazine element still show me the same article i’m reading. I give you access so you can take a look ( i left the code in the function.php, at the top, so you can see it easily). can you tell me how can i give you temporary access?
ThanksMay 6, 2017 at 12:49 am #788676See the privat content
May 6, 2017 at 2:18 pm #788832Hey!
Please remove the previous filter then use this instead.
add_filter('avf_magazine_entries_query','avf_magazine_entries_query_mod', 10, 2); function avf_magazine_entries_query_mod($query, $params) { if(is_singular('post')) { $query['post__not_in'] = array(avia_get_the_ID()); } return $query; }
Regards,
IsmaelMay 6, 2017 at 3:07 pm #788843Thank you! It works perfectly.
Best regards
May 7, 2017 at 4:50 am #789019We’re glad that the problem is fixed now!
Feel free to let us know here in the forums if we can help you with anything else.
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
Thank you for using Enfold.
Cheers!
Sarah -
AuthorPosts
- The topic ‘Post title and related posts titles’ is closed to new replies.