Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    B

    #1146764

    Hey 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,
    Ismael

    #1146925

    Can 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
    B

    #1147067

    Hi,

    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,
    Ismael

    #1147925
    This reply has been marked as private.
    #1148320

    Hi,

    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,
    Ismael

    #1148667
    This reply has been marked as private.
    #1149132

    Hi,

    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,
    Ismael

    #1149392
    This reply has been marked as private.
    #1149862

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.