• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
  • Projects
    • GStaticMap WP Plugin
  • Contact
  • Privacy Policy

Lorenz Blog

All About Web & Mobile Application Development

  • Featured Articles
  • Gadgets
    • Android
    • Blackberry
  • Programming
    • Android
    • PHP
    • Java Script
    • MySQL
    • Postgresql
    • Flex
    • Web
  • Software
    • Mac OS
    • Windows
    • Linux
  • Web
You are Here » Home >> Information Technology >> Software >> Web >> How to Remove Website URL Field From Genesis Theme Comment Form

How to Remove Website URL Field From Genesis Theme Comment Form

February 9, 2014 by Lorensius Londa Leave a Comment

Website URL field in wordpress comment form can be a pain for blog owner. Spammer always use the field to drop the shady links that useless or can be harmful to readers. Genesis theme uses its own function to customize comment form. To remove the URl field, we have add filter to remove the field.

The steps:

  • Go to Genesis child theme directory under wp-content/themes
  • Download functions.php file
  • Alter the file by adding the following lines of code at the bottom:
    add_filter( 'genesis_comment_form_args', 'url_filtered' );
    add_filter( 'comment_form_default_fields', 'url_filtered' );
    
    function url_filtered( $fields )
    {
    	if ( isset( $fields['url'] ) )
    		unset( $fields['url'] );
    
    	if ( isset( $fields['fields']['url'] ) )
    		unset( $fields['fields']['url'] );
    
    	return $fields;
    }
    
  • Save the file then upload it.
  • Check the comment form,the URL field should be missing now.
Facebooktwitterredditpinterestlinkedinmailby feather

Related posts:

  1. How to Enable MySQL InnoDB Storage Engine on XAMPP
  2. How to Enable Theme in Google Apps
  3. Free JavaScript Calendar Using Dynarch Calendar
  4. How to Change Application Theme on Adobe Flex Builder 3

Filed Under: Web, Web Tagged With: comment form, genesis theme, remove url field, wordpress comments

About Lorensius Londa

Passionate web and mobile application developer. Co-founder of TRUSTUDIO, loves programming, Android, aviation, travelling, photography, coffee and gym mania.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Me

A husband, father of two, passionate software developer, diy lover and home baker who loves to learn new things. Read More…

  • Facebook
  • GitHub
  • Google+
  • Instagram
  • Twitter
  • YouTube

Featured Articles

How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Blue Bamboo P25 Printer Android Demo Application With Source Code

Simple JSON RPC Client for Android

How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

Footer

Recent Comments

  • Aditya Dabas on About
  • Ayten Göksenin Barutçu on How to Make Android Map Scrollable Inside a ScrollView Layout
  • mang jojot on About
  • Hussain on How to Programmatically Scan or Discover Android Bluetooth Devices

Recent Posts

  • How to Fix Blank Screen on WordPress Add/Edit Post Page
  • How to Programmatically Restart the ESP32 Board
  • How to Get Hardware Info of ESP32
  • How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Latest Tweets

To protect our users from spam and other malicious activity, this account is temporarily locked. Please log in to https://twitter.com to unlock your account.

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in