From 6288f93c3832bc4c2aaf574dda9d53de6a2885b7 Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 15 Nov 2024 11:16:25 -0400 Subject: [PATCH] css and js --- css/theme-overrides-scholar.css | 8 +++++++- js/theme-overrides-scholar.js | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/css/theme-overrides-scholar.css b/css/theme-overrides-scholar.css index 45489a4..a9f16bd 100755 --- a/css/theme-overrides-scholar.css +++ b/css/theme-overrides-scholar.css @@ -1,3 +1,9 @@ +.field--name-field-orcid .field__item { + display: flex; + .orcid-id { + margin: 0 .4em; + } +} .test { -background: #000; + background: #000; } diff --git a/js/theme-overrides-scholar.js b/js/theme-overrides-scholar.js index e69de29..14fabce 100755 --- a/js/theme-overrides-scholar.js +++ b/js/theme-overrides-scholar.js @@ -0,0 +1,6 @@ +/* Load jQuery. +--------------------------*/ +jQuery(document).ready(function ($) { + var orchid_name = $(".field--name-name a").text(); + $(".field--name-field-orcid .field__item").prepend(orchid_name); +});