Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum wpForo Support Forum

Change the Paperclip Icon to a Camera Icon

Page 1 / 2

MikeQuinn
Posts: 41
Topic starter
(@mikequinn)
Eminent Member
Joined: 3 years ago

I've been at this 3-4 days now (can you tell I'm not a developer)?

Please, please, what is the easiest way to change the paperclip icon to a camera icon?

I've seen CSS methods and JQuery Methods and regular JS methods, but I have yet to get one to work. Font Awesome, regular SVGs, I don't care.

I can navigate to any WP folder, etc. I've been building sites for about 7 years, but I'm not a coder.

I was going to try to replace Font Awesome with 100% SVGs OR delete the unused Font Awesome files, but that is above my pay grade.

Topic Tags
8 Replies
Astghik
Posts: 5293
Admin
(@astgh)
Support Team
Joined: 4 years ago

Hi MikeQuinn,

Here is the solution you can use: https://wpdiscuz.com/community/postid/12492/

Reply
3 Replies
MikeQuinn
(@mikequinn)
Joined: 3 years ago

Eminent Member
Posts: 41

@astgh Is that Jquery code supposed by wrapped in anything? Does nothing when added via headers and footers plugin. Causes white screen of death when added to the child theme's function.php.

Reply
Astghik
Admin
(@astgh)
Joined: 4 years ago

Support Team
Posts: 5293

@mikequinn,

This article should be helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress

You should follow the instruction provided in the article. 

Reply
MikeQuinn
(@mikequinn)
Joined: 3 years ago

Eminent Member
Posts: 41

@astgh I did. Someone else that you gave similar codes to also had this type of issue.

I added to HEADERS AND FOOTERS PLUGIN. Does nothing in the footer, writes it to the top of the page in the header.
I added it directly to FUNCTIONS.PHP - white screen of death.
I placed it in its own file and tried to call it like this with no result:

add_action( 'wp_enqueue_scripts', 'add_my_script' );
function add_my_script() {
    wp_enqueue_script(
        'change-icon',
        get_template_directory_uri() . '/js/change-icon.js',
        array('jquery') 
    );
}
Reply
MikeQuinn
Posts: 41
Topic starter
(@mikequinn)
Eminent Member
Joined: 3 years ago

Here is my code in Functions.php. You can see the Jquery in the URL.

function change_icon_function() {
  wp_enqueue_script( 'change-icon', get_template_directory_uri() . '/ https://gardenerspath.com/public_html/wp-content/themes/generatepress_child/js/change-icon.j s');
}
add_action('wp_enqueue_scripts','change_icon_function');
Reply
MikeQuinn
Posts: 41
Topic starter
(@mikequinn)
Eminent Member
Joined: 3 years ago
Reply
MikeQuinn
Posts: 41
Topic starter
(@mikequinn)
Eminent Member
Joined: 3 years ago

The CSS that was added to the customizer:

i.fas.\.fa-camera {
    content: '\f030';
}
Reply
Page 1 / 2
Share:
Scroll to top