feature: Make aux profile name configurable
Deploy to Dreamhost (dev) / build (push) Successful in 31s
Sync TODOs with Issues / sync_todos (push) Successful in 5s

This commit is contained in:
Keith Solomon
2026-06-20 12:04:43 -05:00
parent b198acbe4f
commit a90758f29d
2 changed files with 28 additions and 2 deletions
+25 -1
View File
@@ -136,6 +136,27 @@
},
"layout": "row",
"sub_fields": [
{
"key": "field_6a36c7aac3ad7",
"label": "Profile Name",
"name": "profile_name",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"allow_in_bindings": 0,
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_677bf0e692d3c",
"label": "Facebook",
@@ -455,5 +476,8 @@
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1749744328
"display_title": "",
"allow_ai_access": false,
"ai_description": "",
"modified": 1781974980
}
+3 -1
View File
@@ -18,6 +18,8 @@ if ( isset( $menus['aux_navigation'] ) ) {
}
$currentPageURL = home_url( $wp->request ) . '/';
$profile = getFieldValue( 'social_media.profile_name' ) ? getFieldValue( 'social_media.profile_name' ) : ''
?>
<div class="nav-aux__container hidden lg:block w-full py-0">
@@ -34,6 +36,6 @@ $currentPageURL = home_url( $wp->request ) . '/';
<?php get_template_part( 'views/partials/social-media' ); ?>
<span class="font-semibold">@cwccollaborative</span>
<span class="font-semibold"><?php echo esc_html( $profile ); ?></span>
</div>
</div>