{"id":11331834,"date":"2019-03-19T18:50:13","date_gmt":"2019-03-19T18:50:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/replace-html-without-forking\/"},"modified":"2019-03-19T18:50:13","modified_gmt":"2019-03-19T18:50:13","slug":"replace-html-without-forking","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/replace-html-without-forking\/","title":{"rendered":"?Replace html without forking"},"content":{"rendered":"<p>I&#8217;d like to not have dots representing events within the calendar widget.  I was able to do that within google-calendar-events\/includes\/calendars\/views\/default-calendar-grid.php by replacing within public function draw_month():<\/p>\n<pre><code>   \t\techo &quot;\\t\\t&quot; . &#039;&lt;span class=&quot;simcal-day-label simcal-day-number&quot;&#039;\n                . $day_style . &#039;&gt;&#039; . $day . &#039;&lt;\/span&gt;&#039; . &quot;\\n&quot;;\n            echo &quot;\\t\\t&quot; . $list_events . &quot;\\n&quot;;\n\t\t\techo &quot;\\t\\t&quot;;\n\n\t\t\techo &#039;&lt;span class=&quot;simcal-events-dots&quot; style=&quot;display: none;&quot;&gt;&#039;;\n            \/\/ Event bullets for calendar mobile mode.\n\t\t\tfor( $i = 0; $i &lt; $count; $i++ ) {\n\t\t\t\techo &#039;&lt;b style=&quot;color: &#039; . $bullet_colors[ $i ] . &#039;;&quot;&gt; &amp;bull; &lt;\/b&gt;&#039;;\n\t\t\t}<\/code><\/pre>\n<p>with<\/p>\n<pre><code>        if ($count)\n        {\n            for( $i = 0; $i &lt; $count; $i++ )\n            {\n               echo &quot;\\t\\t&quot; . $list_events . &quot;\\n&quot;;      \/\/ Need this for popup\n               echo &#039;&lt;span class=&quot;simcal-events-dots&quot;&#039; . $day_style . &#039;&gt;&#039;\n                   . $day . &#039;&lt;\/span&gt;&#039; . &quot;\\n&quot;;\n\t\t\t}\n        }\n        else echo &quot;\\t\\t&quot; . &#039;&lt;span class=&quot;simcal-day-label simcal-day-number&quot;&#039;\n            . $day_style . &#039;&gt;&#039; . $day . &#039;&lt;\/span&gt;&#039; . &quot;\\n&quot;;<\/code><\/pre>\n<p>Is there a way to make those changes without forking the plugin?  I didn&#8217;t find a hook or filter that would do that, but I&#8217;m not very good with php.<\/p>\n","protected":false},"template":"","class_list":["post-11331834","topic","type-topic","status-publish","hentry","topic-tag-events","topic-tag-filter","topic-tag-fork","topic-tag-hook","topic-tag-simple-calendar"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11331834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11331834\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11331834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}