Forum Replies Created
-
AuthorPosts
-
I am checking with our client
This should work. Is it because I am in the PHP area still? I am no technician at all.
Here is the FTP login in the private message
help! panic!
here is the php from the child theme which worked fine before adding the new code (above this)<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function custom_shortcode_func() {
ob_start();
echo “<span class=’post-meta-infos’>”;
echo “<time class=’date-container minor-meta updated’>”.get_the_time(get_option(‘date_format’)).”</time>”;
echo “<span class=’text-sep text-sep-date’>/</span>”;if ( get_comments_number() != “0” || comments_open() ){
echo “<span class=’comment-container minor-meta’>”;
comments_popup_link( “0 “.__(‘Comments’,’avia_framework’),
“1 “.__(‘Comment’ ,’avia_framework’),
“% “.__(‘Comments’,’avia_framework’),’comments-link’,
“”.__(‘Comments Disabled’,’avia_framework’));
echo “</span>”;
echo “<span class=’text-sep text-sep-comment’>/</span>”;
}if(!empty($cats))
{
echo ‘<span class=”blog-categories minor-meta”>’.__(‘in’,’avia_framework’).” “;
echo $cats;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}echo ‘<span class=”blog-author minor-meta”>’.__(‘by’,’avia_framework’).” “;
echo ‘<span class=”entry-author-link” ‘.avia_markup_helper(array(‘context’ => ‘author_name’,’echo’=>false)).’>’;
echo ‘<span class=”vcard author”><span class=”fn”>’;
the_author_posts_link();
echo ‘</span></span>’;
echo ‘</span>’;
echo ‘</span>’;
echo ‘</span>’;
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_meta’, ‘custom_shortcode_func’);function custom_shortcode_func2() {
ob_start();
echo the_category( ‘, ‘ );
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_category’, ‘custom_shortcode_func2’);function custom_tags_shortcode() {
ob_start();
the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_tags_shortcode’);Fatal error: Call to undefined function add_filters() in /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php on line 9
website not longer works!
now Icannot save my php after removing the code without getting a fatal error message!
Thanks for the prompt reply!
UNFORTUNATELY:
oops! I get a “Fatal error” message!
luckily I could revert back and remove the code.
did I do something wrong?
: )
DaraDear Ismael,
Thank you for all the help.
they all worked.
It is so obvious when seen – I do not know why my code did not work.Last questions:
1 – the featured images for the blog posts are not appearing.
Is there any reason for this? how to remedy?
2 – When searching via TAGS the pages have all the word “Posts” in the upper left corner of page
how to remove this?Thanks! and Best regards,
Dara- This reply was modified 7 years, 11 months ago by DaraEmerson.
Thanks Ismael!
some things worked and others not.
I have been fiddling about with in in inspection mode and tried to clean things up a bit.
Appreciate the clarification!1 – still trying to figure out how to add the lines in-between the category sections.
(see #719334 where image is placed)2 – how to increase the spacing between these lines – so there is also more space between the sub-category and the next main category item?
(which I can probably figure out once I have question “1” answered)3 – the “roll-over” works but “current” not.
I assume there is an automatically programmed “current” based on menu color which makes it simply bolderHave a great Monday! THe sun is shining. At least in Vienna
thanks!
best regards
daraThanks Andy
I would like to add a different text altogether to this.
It is a one off thing (ha! I hope)
: )Dara
so these divider lines are now gone everywhere – thanks!
BUT NOT in the MAIN BLOG PAGE: )
Thanks, very nice Rikard!
There is one more thing.
How/Where can one change the text which appears before the AUTHOR?
currently is says “by”
Our client wants something written in German.Thanks
Best regards,
Dara….can we actually place the Facebook, pin etc… links within that as well?
just out of curiosity- This reply was modified 7 years, 11 months ago by DaraEmerson.
Dear Yigit,
I want it to look like this always – whether one is in the main blog page or in a category etc….
(css for “active” rather than “visited” link)There seems to be more levels of menu css for this
the menu changes – this is what is happening now:
1 – main blog page
2 – main category page
3 – subcategory
4 – Tags categorySO:
– The hover, active links need to be the same
– The subcategory needs to be indented always
– css for the horizontal lines above and below the category areas in in the snapshot
– css for the line height of the menuIs this clear?
thanks!
best regards,
Dara- This reply was modified 7 years, 11 months ago by DaraEmerson.
thanks!
thanks but I am using the layout builder – it does not work
there must be some css, or?Thanks in advance!
Best regards,
DaraOh please excuse there was a glitch.
it works now and thanks for the css!best regards,
DaraPS how to remove the comments?
css?strange, when I add this code in and try to update it asks me if I really want to do this? that, on a blank page which opens up.
oops! sent you the incorrect css which I had already removed from the css (but thanks for the info on that) so disregard.
the “correct” CSS I tried but failed with is in the above thread #712462All I am looking for is the CSS for sidebar widget menu:
category, roll-over, visited
sub-category, roll-over, visited
adjust the lines and line-height
etc,,,best regards,
Dara- This reply was modified 7 years, 12 months ago by DaraEmerson.
ONLY in POSTS (all, not just the link provided)
the: date / Comment/ Authorthanks!
Darabest regards
Thanks Ismael!
In BLOG posts only I would like to “align-left” the post-meta info.
In the main blog, category and tags pages I would like it to remain centered on the page.
Is there a way to do this with CSS?Best regards,
Darabut it also removes the dividing lines everywhere else
Here is the CSS I have:
/*BLOG Remove author*/
.html_elegant-blog .archive .post-entry .blog-author, .html_elegant-blog .archive .post-entry .comment-container + .text-sep {
display: none;
}/*remove COMMENTS, DATE everywhere but the Post pages*/
.page .comment-container, .page .date-container, .archive .comment-container, .archive .date-container {
display: none;
}.post-meta-infos span.text-sep {
display: none !important;
}- This reply was modified 7 years, 12 months ago by DaraEmerson.
Thanks! Quick reply! it works
but it also removes the dividing lines everywhere else
Dara- This reply was modified 7 years, 12 months ago by DaraEmerson.
Ok, great, thanks
the text separators are still showing thoughOK Yigit – is this image enough for you?
thanks,
DaraPS here is all the css for this subject:
/*BLOG Remove author*/
.html_elegant-blog .archive .post-entry .blog-author, .html_elegant-blog .archive .post-entry .comment-container + .text-sep {
display: none;
}/*remove COMMENTS, DATE everywhere but the Post pages*/
.page .comment-container, .page .date-container, .archive .comment-container, .archive .date-container {
display: none;
}/* BLOG SHOW DATE; COMMENT
#top . (Purchase code hidden if logged out) .minor-meta.date-container, #top . (Purchase code hidden if logged out) .text-sep-date {
display: inline-block;
}#top . (Purchase code hidden if logged out) .minor-meta.comment-container, #top . (Purchase code hidden if logged out) .text-sep-comment {
display: inline-block;
} */- This reply was modified 7 years, 12 months ago by DaraEmerson.
Thanks maybe you missed this question?
How to remove COMMENTS, DATE everywhere but the Post pages?November 21, 2016 at 4:14 pm in reply to: Question about Transferring set up to our actual site #714869thanks
best regards,
DaraShall I ask about adding the Yoast Taxonomy Widget in another query?
I just wanted to know if we need to add more php to the file if we do add this Taxonomy Widget.3 – Tags, Categories, Author, Date, Comment is now in Post pages, Main Blog Page, Category Pages, Tags pages: GREAT!
How to remove COMMENTS, DATE everywhere but the Post pages?
This is the CSS I have for removing the Author everywhere but the Blog pages
/*BLOG Remove author*/
.html_elegant-blog .archive .post-entry .blog-author, .html_elegant-blog .archive .post-entry .comment-container + .text-sep {
display: none;
} -
AuthorPosts