-
AuthorPosts
-
October 8, 2019 at 9:37 pm #1146287
Hello
I would like to add the categories on my blog feed option on the home page of this site – https://ufcw5.org/
the category options are on the category page feeds – https://ufcw5.org/category/negotiation-updates/
So basically just trying to add the category that the post is in to be displayed on the home page with the 4 large blog pics, title, and excerpt
Thanks
BOctober 10, 2019 at 7:12 am #1146764Hey schwabino,
Thank you for the inquiry.
You can add this filter in the functions.php file to enable the categories for the grid layout.
add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1); function avf_postslider_show_catergories_mod($category) { $category = 'show_business'; return $category; }
Best regards,
IsmaelOctober 10, 2019 at 7:58 pm #1146925Can you please be a little more specific?
In the enfold directory I see 2 functions.php files, there is also a “functions-enfold.php” file I added the code to the “functions.php” file and the site broke, I don’t know where to add the code also because two of the lines turned red on the left in Dreamweaver saying there is an error.
Will I have to re-upload the functions.php file every time I do an update too?
Thanks
BOctober 11, 2019 at 10:09 am #1147067Hi,
Thank you for the update.
Did you copy the code from your email? Please try to copy it directly from the forum. You have to add it in the “functions.php” file — preferably in the child theme so that you don’t have to add it again every update. If you haven’t created a child theme yet, please follow the instructions in the documentation.
// https://kriesi.at/documentation/enfold/child-theme/#how-to-install-the-child-theme
Best regards,
IsmaelOctober 15, 2019 at 12:44 am #1147925This reply has been marked as private.October 16, 2019 at 6:54 am #1148320Hi,
Thank you for the update.
We would like to add the modification for you, but the Appearance > Editor panel is not accessible. Please enable it or post the FTP details in the private field so that we can edit the functions.php file.
Best regards,
IsmaelOctober 16, 2019 at 8:58 pm #1148667This reply has been marked as private.October 18, 2019 at 7:10 am #1149132Hi,
Thank you for the update.
How do you enable it?
You can modify the wp-config.php file and set the “DISALLOW_FILE_EDIT” constant to false.
Here is the SFTP info
Are you sure it’s the right one? The name of the first site is “ufcw5”. not “svminc”.
Best regards,
IsmaelOctober 18, 2019 at 8:01 pm #1149392This reply has been marked as private.October 21, 2019 at 1:46 pm #1149862Hi,
Thank you for the update.
We modified the postslider.php file in the SVM site, but those changes should not cause any errors unless it’s still using an older version of the theme.
We added this snippet in the functions.php file to enable the categories of the posts in the home page.
add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1); function avf_postslider_show_catergories_mod($category) { $category = 'show_business'; return $category; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.